[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#537737: Please gives warning about 'OnlyShowIn=' in .desktop file.



Andrew Lee <andrew@linux.org.tw> writes:

> Some packages use 'OnlyShowIn=GNOME;' or 'OnlyShowIn=GNOME;XFCE;' or 
> even OnlyShowIn=GNOME;KDE;XFCE; in it's XDG's .desktop file. But these
> packages are also works in desktops other than the desktops specificed, 
> such as LXDE.

> Here are the list of packages in sid with keyword 'Show' in it's XDG
> autostart .desktop file:
> etc/xdg/autostart/xfce4-tips-autostart.desktop:OnlyShowIn=XFCE;
> etc/xdg/autostart/user-dirs-update-gtk.desktop:OnlyShowIn=GNOME;
> etc/xdg/autostart/update-notifier.desktop:OnlyShowIn=GNOME;XFCE;
> etc/xdg/autostart/tracker-applet.desktop:OnlyShowIn=GNOME;XFCE;
> etc/xdg/autostart/trackerd.desktop:OnlyShowIn=GNOME;KDE;XFCE;
> etc/xdg/autostart/parcellite-startup.desktop:OnlyShowIn=GNOME;XFCE;
> etc/xdg/autostart/nm-applet.desktop:NotShowIn=KDE;
> etc/xdg/autostart/gnome-volume-manager.desktop:OnlyShowIn=GNOME;XFCE;
> etc/xdg/autostart/gnome-user-share.desktop:OnlyShowIn=GNOME;
> etc/xdg/autostart/gnome-osd-event-bridge.desktop:OnlyShowIn=GNOME;
> etc/xdg/autostart/gnome-at-session.desktop:OnlyShowIn=GNOME;
> etc/xdg/autostart/bluetooth-applet.desktop:OnlyShowIn=GNOME;XFCE

> The nm-applet is a good example as it did that in a proper way. And
> somehow trackerd specificd only 'GNOME;KDE;XFCE;' but there are more
> desktops than 'GNOME;KDE;XFCE;' in debian.

> So, as the subject says, please give warning about 'OnlyShowIn=' in
> .desktop file.

I took another look at this, and while I still don't think warning about
use of the key in general is the right thing to do, it looks like the
issue that you're reporting would be addressed by warning specifically
about those packages that use OnlyShowIn with a list like GHOME;XFCE; or
GNOME;KDE;XFCE;.  In those cases, it's likely that the package meant
NotShowIn instead.

I'll add a Lintian warning for that.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: