<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/18/2013 7:59 PM, John Hupp wrote:<br>
</div>
<blockquote cite="mid:528AB800.4070900@prpcompany.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">On 11/18/2013 5:40 PM, John Hupp
wrote:<br>
</div>
<blockquote cite="mid:528A9747.3070505@prpcompany.com" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 11/18/2013 4:52 PM, Federico
Leoni wrote:<br>
</div>
<blockquote
cite="mid:CAFe6bgUz5WR64k+JXsErA=kPHnwA6w+r8bV4qBL6xjSB-khpww@mail.gmail.com"
type="cite">
<div dir="ltr">2013/11/18 John Hupp <<a
moz-do-not-send="true"
href="mailto:lubuntu@prpcompany.com">lubuntu@prpcompany.com</a>>:<br>
> When understanding broke upon me today concerning
LXSession's default<br>
> setting (in 13.10) of 'disable_autostart=config-only'
(rather than<br>
> 'disable_autostart=no'), I changed it to NO and
immediately solved a<br>
> weeks-old problem with SpiderOak Backup not
auto-starting.<br>
><br>
> But this change triggered a new problem: There are two
instances of<br>
> nm-applet running. Both instances work and yield the
same information.<br>
><br>
> Since I had set disable_autostart=no in both<br>
> /etc/xdg/lxsession/Lubuntu/desktop.conf and in<br>
> ~/.config/lxsession/Lubuntu/desktop.conf, I considered
it possible (though<br>
> unexpected) that this was causing two instances to
autostart, but setting<br>
> disable_autostart=config-only once again in<br>
> /etc/xdg/lxsession/Lubuntu/desktop.conf did not solve
the problem.<br>
><br>
> The obvious questions: What happened? How can I fix
it?<br>
><br>
><br>
><br>
> --<br>
> Lubuntu-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Lubuntu-users@lists.ubuntu.com">Lubuntu-users@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at:<br>
> <a moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users">https://lists.ubuntu.com/mailman/listinfo/lubuntu-users</a><br>
John,<br>
<br>
<span
style="font-family:arial,sans-serif;font-size:12.666666984558105px">you
need to disable "network" from Prefereces-->Desktop</span><br
style="font-family:arial,sans-serif;font-size:12.666666984558105px">
<span
style="font-family:arial,sans-serif;font-size:12.666666984558105px">Session
Settings.</span><br>
<div><span
style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br>
</span></div>
<div><span
style="font-family:arial,sans-serif;font-size:12.666666984558105px">F.</span></div>
</div>
</blockquote>
<br>
That sort of works.<br>
<br>
As Julie Lavergne noted today in a post with Subject: 'Back on
13.10 release,' lxsession-edit (Preferences: Desktop Session
Settings) has been removed from 13.10. It has been replaced by
lxsession-default-apps (Preferences: Default Applications for
LXSession). I think you and I had some previous exchange on
this topic.<br>
<br>
But the layout and functionality of lxsession-default-apps seem
confusing. You might think that its Autostart tab was intended
to replace lxsession-edit's functionality, but as far as I can
tell so far, it's major function is to disable/enable whole
classes of autostarting apps. There seems to be a provision for
manually adding and controlling single apps, but there is no
pre-populated list as there was with lxsession-edit.<br>
<br>
In any case, on the Running Applications tab, I edited Network
GUI: nm-applet and set that to NO. This results in only one
instance of nm-applet running for that user. The edit must be
repeated for all users. [There is undoubtedly a global
configuration that would fix that, but it does not seem to be
achievable through the GUI, and I have not found documentation
for accomplishing that directly in a configuration file.]<br>
<br>
But I still don't know where the other instance of nm-applet is
launching from. /etc/xdg/lxsession/Lubuntu/autostart is empty,
as is ~/.config/lxsession/Lubuntu/autostart. And there is no
*.desktop entry for nm-applet in the ~/.config/autostart folder.<br>
<br>
</blockquote>
<br>
After some further research, I found that the still-enabled
instance of nm-applet is auto-starting from
/etc/xdg/autostart/Network.desktop.<br>
<br>
But I also found that /etc/xdg/lxsession/Lubuntu/autostart and
~/.config/lxsession/Lubuntu/autostart are both empty files. So in
lxsession-default-apps, when I set changed Network GUI from
nm-applet to 'no', what was it writing that setting to?<br>
<br>
</blockquote>
<br>
I don't have a full grasp of this, but now know another piece of the
puzzle. I already understood that LXSession will autostart apps
from these locations:<br>
/etc/xdg/lxsession/Lubuntu/autostart (command file)<br>
~/.config/lxsession/Lubuntu/autostart (command file)<br>
/etc/xdg/lxsession/Lubuntu/autostart (autostart directory
containing *.desktop files)<br>
~/.config/autostart (autostart directory containing *.desktop
files)<br>
<br>
But now I understand that the new LXSession tools will also
autostart many apps from these conf files:<br>
/etc/xdg/lxsession/Lubuntu/desktop.conf<br>
~/.config/lxsession/Lubuntu/desktop.conf (this is the more
important file and takes precedence in case of conflicting entries)<br>
<br>
With some of the apps that may be started via desktop.conf, there is
an autostart option to control whether or not the app autostarts.
But in the case of the network manager GUI, if a command is
specified (e.g. network_gui/command=nm-applet), it autostarts --
there is no option not to have it do so.<br>
<br>
Lxsession-default-apps (aka menu Preferences: Default Applications
for LXSession) reads-from/writes-to
~/.config/lxsession/Lubuntu/desktop.conf, so settings made this way
are per-user.<br>
<br>
Some important info sources:<br>
<a href="http://wiki.lxde.org/en/LXSession">http://wiki.lxde.org/en/LXSession</a><br>
<a
href="http://standards.freedesktop.org/autostart-spec/autostart-spec-0.5.html">http://standards.freedesktop.org/autostart-spec/autostart-spec-0.5.html</a>
(LXSession supports these additional autostart methods)<br>
<a
href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html</a>
(explanation of the relevant environment variables)<br>
<a
href="http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxsession;a=blob;f=data/desktop.conf.example;hb=HEAD">http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxsession;a=blob;f=data/desktop.conf.example;hb=HEAD</a>
(sample desktop.conf detailing all options)<br>
<a
href="http://sourceforge.net/mailarchive/forum.php?thread_name=CAMZp3rmXGdzsY4sB_bjFb4%3DqRB_UHD60cq2%2BhH1fCu0zsZnipg%40mail.gmail.com&forum_name=lxde-list">http://sourceforge.net/mailarchive/forum.php?thread_name=CAMZp3rmXGdzsY4sB_bjFb4%3DqRB_UHD60cq2%2BhH1fCu0zsZnipg%40mail.gmail.com&forum_name=lxde-list</a>
(a Julien Lavergne post to the LXDE_List that provides some helpful
context)<br>
<a href="http://wiki.lxde.org/en/LXDE:Questions">http://wiki.lxde.org/en/LXDE:Questions</a>
(more interesting stuff about LXDE configuration)<br>
<br>
Even if you read through all of the above, though, you will still
find some info gaps. For instance, the location of desktop.conf, or
additionally, that there are actually two locations, and that the
user-location version prevails. Also that lxsession-default-apps
reads/writes only the user-location version of desktop.conf. In
fact, as far as I know, lxsession-default-apps is currently
documented very lightly.<br>
<br>
(I could add for others who are newbies or not-long-exited from that
status that all of the above addresses only application autostarts
occurring after user login. Service/daemon control uses a whole
other scheme.)<br>
</body>
</html>