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-to-a-desktop-file]...] * hashbang: #!/usr/bin/env deskopen * dex foo.desktop Ref: https://askubuntu.com/questions/5172/running-a-desktop-file-in-the-terminal -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gvfs in Ubuntu. https://bugs.launchpad.net/bugs/378783 Title: xdg-open *.desktop opens text editor Status in gvfs: Expired Status in gvfs package in Ubuntu: Confirmed 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. To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/378783/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

