LinuxVillage

Projects and resources (En) => Tips and tricks => Discussion démarrée par: mimas le 09 juin 2013 à 12:18:27

Titre: Autostart desktop files that don't mess up with other D.E.
Posté par: mimas le 09 juin 2013 à 12:18:27
I have installed  Xfce4 over Bento, and things went wrong: tint2 and other Bento autostarted programs prevented xfce4 panel from starting, leaving a not  xfce4 look-a-like desktop on screen.

There are other Desktop Environments –yes, i was told so– and we need to take care of them by adding a line on home-made autostart desktop files. xdg-autostart considers the desktop to be Openbox if no other name is passed on its command line. So adding 'OnlyShowIn=Openbox' in desktop file makes xdg-autostart launches the program only in a Openbox environment and ignore it in another desktop environment.

Examples: I haved added the line in my configuration : https://pikacode.com/FabriceT/desktop-config/files/default/autostart (https://pikacode.com/FabriceT/desktop-config/files/default/autostart)

Note: Openbox doesn't  exist in Freedesktop standard (http://standards.freedesktop.org/menu-spec/latest/apb.html), the only standardized name left for generic desktop environment is Old, I couldn't used it.
Titre: Re : Autostart desktop files that don't mess up with other D.E.
Posté par: Taco.22 le 09 juin 2013 à 14:25:48
Citation de: mimas
There are other Desktop Environments –yes, i was told so

Didn't your mother tell you not to talk to strange people  :o ;)
Titre: Re : Re : Autostart desktop files that don't mess up with other D.E.
Posté par: melodie le 09 juin 2013 à 14:30:23
Didn't your mother tell you not to talk to strange people  :o ;)

 :D :D :D

I can add the NotShowIn lines in the desktop files default provided in the Ubuntu Openbox I deliver. It's not a big deal. :)
Titre: Re : Autostart desktop files that don't mess up with other D.E.
Posté par: mimas le 09 juin 2013 à 16:19:08
I have question about D.E. names. I haved coded a new version of xdg-autostart in Vala and used OPENBOX as DE name. It was Openbox in the C coded version, changed to uppercase since a few minutes.

But, I am asking myself a question. D.E. names are case sensitive. OPENBOX looks like its an acronym and this annoys me a little . What do you think, should we use  OPENBOX or Openbox?

Edit: Openbox has my preference; I have committed the code change. Plus, It's already the default case in the installed version of xdg-autostart.
Titre: Re : Autostart desktop files that don't mess up with other D.E.
Posté par: melodie le 09 juin 2013 à 17:07:47
It might as well be "openbox" which is what I used as well as other persons in some custom desktop files where we found out it works best with low case. I wonder if you should not ask the question directly on the #openbox chan at OFTC? (The main devs being of there).