! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Do not generate autostart file
Status:
CLOSED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Tomasz Paweł Gajc 2009-03-12 18:14:59 CET
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.
Comment 1 Ali Abdallah editbugs 2009-03-12 18:24:01 CET
(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.
Comment 2 Tomasz Paweł Gajc 2009-03-12 19:44:37 CET
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 ?
Comment 3 Ali Abdallah editbugs 2009-03-12 19:47:29 CET
(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.
Comment 4 Ali Abdallah editbugs 2009-03-24 18:08:43 CET
(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.
Comment 5 Ali Abdallah editbugs 2009-07-02 14:09:28 CEST
Closing old bugs to keep things organized.

Bug #5088

Reported by:
Tomasz Paweł Gajc
Reported on: 2009-03-12
Last modified on: 2009-07-14

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information