7

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?)

studiohack
  • 13,477
osgx
  • 7,017

2 Answers2

15

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
  • 16,572
2

Also, kfmclient exec seems to do the thing.

osgx
  • 7,017