faure at kde.org
Tue Mar 18 18:56:33 GMT 2008
On Tuesday 18 March 2008, Laurent Montel wrote:
> On Tuesday 18 March 2008 15:07:37 David Faure wrote:
> > On Tuesday 18 March 2008, Laurent Montel wrote:
> > > On Tuesday 18 March 2008 10:43:18 David Faure wrote:
> > > > On Tuesday 18 March 2008, Laurent Montel wrote:
> > > > > Hi,
> > > > >
> > > > > I worked on kcm_autostart and now we can configure autostart files.
> > > > > Now I am a question:
> > > > > KDE4.0 supports xdg autostart folder (.config/autostart), so it will
> > > > > better to create autostart file directly in this folder.
> > > > > So it will necessary to hide in kcmshell4 desktoppath "Autostart
> > > > > Path" and remove in konqueror entry "Autostart" (or replace
> > > > > .kde/Autostart by .config/autostart).
> > > > > We keep KGlobalSettings::Autostart for compatibility.
> > > > >
> > > > > And we can create a script to move all .desktop (script) in
> > > > > .kde/Autostart to .config/autostart.
> > > > >
> > > > > What do you think about it ?
> > > >
> > > > Maybe we need both?
> > > > Using .config/autostart instead of .kde/Autostart makes a difference if
> > > > you use two environments, like gnome and KDE. What you put in
> > > > .config/autostart will be autostarted in both environments, and what
> > > > you put in
> > > > .kde/Autostart will only be started by KDE. Isn't this a feature? I
> > > > mean, you might have something in your KDE autostart which you don't
> > > > need/want in gnome? Looking at my own autostart folder it's pretty
> > > > KDE-unrelated but maybe others have the need for the KDE-only folder?
> > > > Anyone?
> > >
> > > Spec Desktop file has OnlyShowIn which specify if we want to start or not
> > > in specific environment. (We can add a "advanced" dialog box in kcm
> > > autostart to specify it)
> > Hmm yes but my Autostart files are not .desktop files.
> > Does .config/autostart also support shell scripts and binaries?
> > In that case OK.
> code which launchs script is here:
I meant in the XDG spec.
* Does the XDG spec support .desktop files in .config/autostart?
* Does the XDG spec support shell scripts and other binaries in .config/autostart?
Or does XDG only say "the autostart folder is in .config" without any details about
how to handle its contents? Then we might as well do whatever we prefer indeed :)
> so we can replace KGlobalSettings::autostartPath() by xdg-autostart dir.
Yes (only if we auto-migrate the files)
> void KSMServer::runUserAutostart()
Yeah I wrote this code :)
However I don't think it handles OnlyShowIn in .desktop files.
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel