Standard for configuring extra function keys

Thiago Macieira thiago at kde.org
Fri Feb 10 15:08:25 EET 2006


Matthew Garrett wrote:
>On Fri, Feb 10, 2006 at 01:25:48PM +0100, Marvin Raaijmakers wrote:
>> Well, I try to make keytouch as desktop independent as possible. For
>> example it uses konqueror under KDE and nautilus under GNOME as the
>> filemanager. I didn't know there was an infrastructure for starting
>> the preferred browser, but I would really like to use it (where can I
>> find information about it).
>
>gnome-open takes a URL and opens it in the user's configured web
>browser. I'd expect KDE to have something similar.

kfmclient openURL %u
kfmclient exec %u

The first form will open the URL in the browser; the second will launch 
the application for the given URL (which may or may not be the browser)

>> Maybe you are about point 2, but would it not be great if the desktop
>> environments share the configuration?
>
>Not really. If I'm running a desktop, I want hitting a hotkey to open
>that desktop's preferred application.

That's probably something that can be done more cleanly with a D-Bus 
interface that the desktop would claim. We have several helper methods in 
KDE classes like invokeMailer, invokeHelp, invokeBrowser, etc.

Those should be exposed.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20060210/95131463/attachment.pgp 


More information about the xdg mailing list