xdg-open *.desktop opens text editor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| GLib |
Fix Released
|
Unknown
|
||
| gvfs |
New
|
Undecided
|
Unassigned | |
| glib2.0 (Ubuntu) |
Low
|
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/
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 : | #1 |
ronny (ronny-standtke) wrote : | #2 |
I can also confirm this bug. I need to test the opening of applications via xdg-open because of http://
Unfortunately, this bug prevents testing of the wine bug above...
Changed in xdg-utils (Ubuntu): | |
status: | New → Confirmed |
Tyler Wagner (tyler) wrote : | #3 |
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 : | #4 |
I confirm!
James (jamesasgrim) wrote : | #5 |
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 : | #6 |
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
no longer affects: | xdg-utils (Gentoo Linux) |
Tom Wieczorek (twz123) wrote : | #7 |
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 : | #8 |
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 : | #9 |
@Tom #7: gnome-open was deprecated a long time ago, xdg-open now uses gvfs-open. Upstream bug report is https:/
affects: | xdg-utils (Ubuntu) → gvfs (Ubuntu) |
Changed in gvfs: | |
importance: | Unknown → Low |
status: | Unknown → Confirmed |
Albert Zeyer (albertzeyer) wrote : | #10 |
kde-open also opens in a file editor for me. This is quite annoying.
Jarno Suni (jarnos) wrote : | #11 |
xdg-open works as expected in Ubuntu (Studio) 14.04.
xdg-open works as expected in Xubuntu 14.04
Mikhail Yevchenko (mail-c) wrote : | #13 |
xdg-open and exo-open opens a text editor in Ubuntu 14.10.
Jonathan (desertshadow) wrote : | #14 |
Ubuntu 15, xdg-open still opens a text editor. Let's get this fixed, it's been 3 years
Changed in gvfs (Ubuntu): | |
assignee: | nobody → Florian LE MINOUX (fodoc22) |
assignee: | Florian LE MINOUX (fodoc22) → nobody |
Seb Bonnard (sebma) wrote : | #15 |
Hi, xdg-open opens a kate in Ubuntu 14.10.
Can anyone tell me the output of this command on Ubuntu 14.04 so I can compare it to my Ubuntu 14.10 :
xdg-mime query default application/
skierpage (skierpage) wrote : | #16 |
re: comment #15
In Kubuntu 16.04, xdg-open is a bash script that determines your desktop environment (starting with the value of $XDG_CURRENT_
> xdg-mime query default application/
This outputs "wine-extension
As I understand it, our desktops don't have a .desktop file volunteering to handle the mime type application/
Changed in gvfs: | |
status: | Confirmed → Expired |
Stu (stu-axon) wrote : | #17 |
This is still a bug in December 2016.
Tested in Gnome on 16.04.
Commercial programmes and Wine programmes install .desktop files. And they just end up opening gedit.
I've noticed this bug for years but only reported it now.
Stu (stu-axon) wrote : | #18 |
To fix:
Install dex:
$ sudo apt-get install dex
Download this desktop file https:/
$ wget https:/
Desktop files will now launch their apps instead of opening gedit.
marsteegh (marsteegh) wrote : | #19 |
A very annoying bug, and *Still* not fixed.
Sviatoslav Sydorenko (webknjaz) wrote : | #20 |
I'm also suffering from this bug, so here's some workarounds I've found on the Internet.
SO suggests the following workarounds:
* gtk-launch foo opens foo.desktop
* exo-open [[path-
* hashbang: #!/usr/bin/env deskopen
* dex foo.desktop
Ref:
https:/
Zaplo (zaplo) wrote : | #21 |
What is preventing this from being fixed? Is it just lack of devs or because of stupid design decision?
Ra (raffamaiden) wrote : | #22 |
Still bugged after 9 years from the reporting ....
tags: | added: bionic |
Changed in gvfs: | |
status: | Expired → Confirmed |
josvanr (josvanr) wrote : | #23 |
Correction: the nineth anniversary of this bug is only now coming up soon:
ubuntu 18.04
xdg-open transmission-
opens up a text editor instead of launching 'transmission'
It seems to work on xubuntu 17.10, though...
josvanr (josvanr) wrote : | #24 |
now it would be nice to have a way of finding out when it does/doesn't work..
Changed in gvfs: | |
status: | Confirmed → Expired |
Stu (stu-axon) wrote : | #25 |
Hi,
This bug still exists in 18.04, and I imagine it still will in another 8 years.
S
Gert van den Berg (mohag1) wrote : | #26 |
Upstream bug URL changed to https:/
Unable to edit it...
Gert van den Berg (mohag1) wrote : | #27 |
Gnome bug was migrated to Gitlab (over at https:/
Changed in gvfs: | |
importance: | Low → Undecided |
status: | Expired → New |
elichai2 (elichai2) wrote : | #28 |
Hi,
This bug still exists In Kubuntu 18.04 KDE: 5.12.7
Thanks.
Flechette39 (flechette39) wrote : | #29 |
This bug still exists on Ubuntu 18.10 Cosmic Cuttlefish, and it sucks so bad.
Hope those upstream guys get it fixed soon.
affects: | gvfs (Ubuntu) → glib2.0 (Ubuntu) |
Changed in glib2.0 (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in glib: | |
status: | Unknown → New |
Andrew Keats (steakeye) wrote : | #30 |
I was on Bionic Beaver and my '.desktop' Desktop Entry files were working but after an upgrade to Disco Dingo they just launch gedit.
xChris (cs-.) wrote : | #31 |
Temp "patch" (works with gnome-shell)
install "dex" , then @ $HOME/.
a file "userapp-
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/usr/bin/dex %u
Name=Dex
Comment=Dex-opener
"asssociate" a .desktop file with that
Adding these two lines at the end of the .desktop file; makes it possible to show allow launching from right click and made the file actual executable shortcut
Type=Application
Terminal=0
Kenneth Hanson (khanson679) wrote : | #33 |
Bug still present in Kubuntu 19.10.
whitefawn (whitefawn) wrote : | #34 |
Confirmed #32 in 19.10
I added Terminal=0 . Then I right-clicked on the icon and selected "Allow Launching" from the menu. The launch worked, just as in Windows 3.1 Thanks Adeel!
Euclides Paim (euclidespaim) wrote : | #35 |
Bug stlil present in Ubuntu 20.04.
Changed in glib: | |
status: | New → Fix Released |
Changed in glib2.0 (Ubuntu): | |
status: | Triaged → Fix Committed |
I can confirm this, however, "exo-open" and "kde-open" still work...