"Open with..." does not work with emacs

Bug #379302 reported by Bernhard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Do
Invalid
Undecided
Unassigned
emacs-snapshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Say I have emacs-snapshot-gtk installed and I summon a text file, then say "Open with..." and then choose emacs-snapshot-gtk, then emacs opens but it does not open the file. I have tried to play around with the launchers (add %U, %F and such) in the main menu but nothing seems to help. I think this is a bug in gnome-do because if I right-click on the same text file in nautilus, then it opens the file just fine.

Peng Deng (d6g)
Changed in do:
status: New → Confirmed
Revision history for this message
GreySim (greysim) wrote :

Adding " %F" to the exec lines of both emacs* .desktop files in /usr/share/applications make it work just fine.

Revision history for this message
Peng Deng (d6g) wrote :

Adding %F to the Exec string in /usr/share/applications/emacs-snapshot-gtk actually can solve this problem. The same trick also works for emacs client (/usr/share/applications/emacsclient-emacs-snapshot.desktop)

Alex Launi (alexlauni)
Changed in do:
status: Confirmed → Invalid
Revision history for this message
Bernhard (b.a.koenig) wrote :

Thanks to Peng and GreySim, that finally worked. But I don't quite get it: I tried adding the desktop files in the main menu and that did NOT work. You really have to sudo into the /usr/share/applications/ files. So it really seems to be a bug in the emacs22 package.

Revision history for this message
era (era) wrote :

Confirming, as per comment #2

Changed in emacs22 (Ubuntu):
status: New → Confirmed
Revision history for this message
era (era) wrote :

Oops, emacs-snapshot, not emacs22

affects: emacs22 (Ubuntu) → emacs-snapshot (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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