I don't get the idea to auto-generate the *.desktop file in ~/autostart ? Anyways this breaks lot of things. For instance, there is no OnlyShowIn=XFCE; key, which means that xfce4-power-manager will be autostarted under KDE/GNOME/whatever which leads to collisions with other power managers. i'd suggest to remove autostart() function completely, and simply provide a desktopfile which will be installed under /etc/xdg/autostart.
(In reply to comment #0) > I don't get the idea to auto-generate the *.desktop file in ~/autostart ? > > Anyways this breaks lot of things. For instance, there is no OnlyShowIn=XFCE; > key, which means that xfce4-power-manager will be autostarted under > KDE/GNOME/whatever which leads to collisions with other power managers. > > i'd suggest to remove autostart() function completely, and simply provide a > desktopfile which will be installed under /etc/xdg/autostart. This have been already discussed, i will provide a patch to the current 0.6 version to put OnlyShowIn=XFCE, but it is easy to fix just add this line in autostart() function in src/xfpm-main.c g_key_file_set_string (key,"Desktop Entry","OnlyShowIn","XFCE"); Sorry for the inconvenience.
This is not the real solution imho! Why do you auto-generate this file ? Why not to do like world is doing ? Providing a xfce-power-manager.desktop file, wich will be installed to $(SYSCONFDIR)/xdg/autostart on installation ?
(In reply to comment #2) > This is not the real solution imho! > > Why do you auto-generate this file ? > > Why not to do like world is doing ? Providing a xfce-power-manager.desktop > file, wich will be installed to $(SYSCONFDIR)/xdg/autostart on installation ? I'll fix it.
(In reply to comment #3) > (In reply to comment #2) > > This is not the real solution imho! > > > > Why do you auto-generate this file ? > > > > Why not to do like world is doing ? Providing a xfce-power-manager.desktop > > file, wich will be installed to $(SYSCONFDIR)/xdg/autostart on installation ? > > I'll fix it. Fix it in version 0.6.5, please upgrade, sorry for the inconvenience.
Closing old bugs to keep things organized.