Kde equivalent of `gnome-open file` command

3

2

There is cool CLI utility an gnome-open file which does an application launch given the file the same way as douburu-clicking on this file in file-manager of gnome.

How should I do the same with kde? (launch the same application as it will be done as doubre clicking it in konquerorer?)

osgx

Posted 2011-06-04T22:22:23.863

Reputation: 5 419

Answers

9

KDE's version of that command is kde-open.

However, there's also a universal version that should work in any desktop environment called xdg-open. Get in the habit of using that and you won't need to figure out a new command if you decide to switch to something else besides KDE later.

Patches

Posted 2011-06-04T22:22:23.863

Reputation: 14 078

To learn more about xdg-open see this answer for related question.

– patryk.beza – 2017-01-10T18:26:44.070

when the kde-open and xdg-open was added? (which version of ubuntu and"or version of kde"gnome) – osgx – 2011-06-04T23:22:21.727

2xdg-open seems to have been in Ubuntu as early as 8.04 Hardy Heron. It's part of the xdg-utils package which is usually installed by default. kde-open has been in KDE since KDE 3, before Ubuntu even existed. – Patches – 2011-06-04T23:44:46.397

1

Also, kfmclient exec seems to do the thing.

osgx

Posted 2011-06-04T22:22:23.863

Reputation: 5 419