Opened 11 years ago

Closed 10 years ago

#243 closed defect (fixed)

Unity specific menu options from .desktop files being prioritised over defaults

Reported by: madmonk Owned by: Antoine Martin
Priority: trivial Milestone: 0.12
Component: Server Keywords:
Cc:

Description

The Win Switch menu appears to offer the last choice in the .desktop file these typically appear to be the unity specific options which would normally be ignored / hidden in other environments. The files can of course be copied and modified which clears up the problem. It would of course be nice if the relevant parser could be adjusted to take the 1st option in the file (which is the default option AFAIK).

e.g.

Exert from the firefox.desktop file...

From the beginning of the file

[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
....
Exec=firefox %u

The Win Switch menu shows the last option however....

From the end of the file

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
...
Exec=firefox -private-window
OnlyShowIn=Unity;

Attachments (1)

file_io.diff (418 bytes) - added by madmonk 11 years ago.
Quick fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by Antoine Martin

Component: ClientServer
Milestone: 0.12
Owner: set to Antoine Martin
Status: newaccepted

Yes, that's a bug! (I wrote the xdg file parser before I found out about python-xdg..)

Thanks for reporting it.

Changed 11 years ago by madmonk

Attachment: file_io.diff added

Quick fix

comment:2 Changed 11 years ago by madmonk

Short of writing a full parser the attached is a quick fix which seems to do the trick.

comment:3 Changed 10 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

I believe this has been dealt with in #268 with an almost identical change.

Feel free to re-open if you still have problems.

Note: See TracTickets for help on using tickets.