Ubuntu

xdg-open *.desktop opens text editor

Reported by typo on 2009-05-20
282
This bug affects 62 people
Affects Status Importance Assigned to Milestone
gvfs
Confirmed
Low
gvfs (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: xdg-utils

In order to reproduce it execute "xdg-open *.desktop" (choose any .desktop file, e.g. one from /usr/share/applications). Actually your favorite text editor will open the file. Expected result: It'll be executed.

Because of this bug, desktop entries with the new "#!/usr/bin/env xdg-open" shebang feature were opened in the text editor when executed from command line.

SF007 (sf007) wrote :

I can confirm this, however, "exo-open" and "kde-open" still work...

ronny (ronny-standtke) wrote :

I can also confirm this bug. I need to test the opening of applications via xdg-open because of http://bugs.winehq.org/show_bug.cgi?id=19702
Unfortunately, this bug prevents testing of the wine bug above...

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Tyler Wagner (tyler) wrote :

Can we please give this bug some importance. Until this is fixed, there is NO WAY, short of grep+exec trickery, to execute .desktop files from the command line.

Alex Solanos (hakermania) wrote :

I confirm!

James (jamesasgrim) wrote :

Also confirm, but I tried kde-open and this also opened the .desktop file in my text editor.

This affects me because I'm trying to run an application from command line that is also in my Unity bar but from the command line, but for some reason it launches as a separate icon instead of putting an arrow next to the existing icon.

Colin Law (colin-law) wrote :

Can we get the priority of this boosted as it also means that desktop files that are selected from the Unity Dash are opened in gedit instead of being run. See bug #975427 Dash opens desktop files in gedit instead of running them

telinit (telinit) on 2013-01-21
no longer affects: xdg-utils (Gentoo Linux)
Tom Wieczorek (twz123) wrote :

Same behavior for gnome-open: It just launches the text editor. Are there any bug reports for gnome-open / kde-open concerning this issue?

ronny (ronny-standtke) wrote :

I just noticed that "kioclient exec <desktop file>" executes desktop files just fine. So at least for KDE users there is finally a solution for this issue.
I would prefer a standard (desktop agnostic) solution though.

MestreLion (mestrelion) wrote :

@Tom #7: gnome-open was deprecated a long time ago, xdg-open now uses gvfs-open. Upstream bug report is https://bugzilla.gnome.org/show_bug.cgi?id=343896

affects: xdg-utils (Ubuntu) → gvfs (Ubuntu)
Changed in gvfs:
importance: Unknown → Low
status: Unknown → Confirmed
Albert Zeyer (albertzeyer) wrote :

kde-open also opens in a file editor for me. This is quite annoying.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.