[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Passing additional parameters to a mime type handler
From: Fred Schaettgen <kde.sch () ttgen ! net>
Date: 2005-04-11 19:07:30
Message-ID: 200504112107.30174.kde.sch () ttgen ! net
[Download RAW message or body]
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=<URI>,<parameter name>
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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic