From kde-devel Mon Apr 11 19:07:30 2005 From: Fred Schaettgen Date: Mon, 11 Apr 2005 19:07:30 +0000 To: kde-devel Subject: Passing additional parameters to a mime type handler Message-Id: <200504112107.30174.kde.sch () ttgen ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=111324648032583 Hi all, Is there a way to pass more than just an URL to a mime type handler when opening a file? I guess we'd need something like this to let viewer applications jump instantly to the position of a match when I click a file in the search results of kfind. Given that kfind already knows the structure of a file already, it could tell the viewer to open the file directly on page 10, where the text was found. Also the search function of the viewer itself could be intialized with a suitable string, so that I can move seemless from search across files to searching inside a file. If there is no good solution for the problem already, then could we introduce a new option for application's desktop files to specify additional parameters? Like this for instance: X-KDE-ExecParameter=, If kfind knows about a parameter type with the URI http://foobar/pagenumber (which might translate to "base-10 ascii number with the semantics of a page number") and an application supports the same parameter type, the appliation could be started with a page number as a parameter. The 'parameter name' and the actual value of the parameter could simply be appended to the command line. Does this make any sense? Or is there even a good way to do something like that with what we have already? thanks Fred -- Fred Schaettgen kde.sch@ttgen.net >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<