Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2587  / 1 Year ago, thu, may 25, 2023, 8:19:24

I'm running an Openbox session in Lubuntu 13.04 with the same lxpanel as I do in a standard Lubuntu session because I prefer that rather than the "right-click" menu provided in the Openbox session.



I notice that lxpanel's Menu lists some applications twice in an Openbox session but just once in a Lubuntu session. Digging a little more, I get the impression it is because the "OnlyShowIn" and "NotShowIn" instructions in certain .desktop files (in /usr/share/applications) are being ignored in an Openbox session.



For example, I have two "Software & Updates" .desktop files:



-rw-r--r--   1 root root   466 Jun  7 00:51 software-properties-gnome.desktop
-rw-r--r-- 1 root root 531 Jun 7 00:51 software-properties-gtk.desktop


The upper one has OnlyShowIn=GNOME;

and the lower one has NotShowIn=GNOME;



Both are visible in an Openbox session but only the latter appears, and correctly so, in a Lubuntu session. Is it because an Openbox session isn't a "desktop environment" and is not listed in Registered OnlyShowIn Environments?



(It's not just about GNOME. I also have two Synaptic Package Manager .desktop files; one has OnlyShowIn=KDE; it is visible in the Openbox session but is not seen in the Lubuntu session.)


More From » .desktop

 Answers
0

The following page provides a good explanation of Openbox's autostart process, which is independent of the autostart you would experience with "registered" desktop environments:



http://urukrama.wordpress.com/2012/06/30/autostart-applications-in-openbox-3-5/



Note that the python-xdg package, required for Openbox to process desktop entries in /etc/xdg/autostart, is not installed by default with Openbox 3.5.0. Also, the OnlyShowIn value for Openbox is rendered in all caps.



Good luck, and may your box always be open.


[#29431] Saturday, May 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tialmes

Total Points: 14
Total Questions: 108
Total Answers: 102

Location: Oman
Member since Thu, Jun 16, 2022
2 Years ago
;