Peppermint | Linux OS Community Forum
 
It is currently Fri Sep 20, 2019 3:43 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: autostart file: global vs user (SOLVED)
PostPosted: Thu Mar 20, 2014 4:07 pm 
Offline

Joined: Thu Mar 20, 2014 3:38 pm
Posts: 4
Hi,

when I recently added some entries to
Code:
~/.config/lxsession/Peppermint/autostart
I discovered that this file also exists as a global script in
Code:
/etc/xdg/lxsession/Peppermint/autostart
. Furthermore I found out that on a fresh install of peppermint there is no "Peppermint" directory in the ~/.config/lxsession directory at all. It must have been created automatically at some point by some configuration tool but until now I couldn't find which one it was.
While that would be interesting to know, I'm mainly curious whether the local user version and the global version of the autostart file are conflicting in some way when they share some commands like e.g.
Code:
@xbindkeys
. That one and a few others wasn't added manually be me to the local file but was already there when I first opened it in a text editor. It is also called from the global file. Are those commands getting executed twice so that startup could be slowed down or is there a mechanism in lxsession or so that suppresses that? And if they do, shouldn't the two autostart files be kept in sync automatically somehow?

I know, this doesn't seem to be that big an issue but it ranges among that kind of small things that are bugging me in a system.

Trying to have a look at some process tables while maybe some of you share some thoughts on this...

Greetings,

Frank


Last edited by anorax on Mon Mar 24, 2014 4:36 pm, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: autostart file: global vs user
PostPosted: Thu Mar 20, 2014 4:31 pm 
Offline
User avatar

Joined: Tue Sep 27, 2011 12:15 am
Posts: 940
Location: Lake Gaston NC
Are you running P3 or P4 / 32bit or 64bit? In P4 64bit, unless added manually, there is no ~/.config/lxsession/Peppermint (as you say). All that's in ~ /.config/lxsession is the LXDE folder. If you did not install it manually I have no idea how it got there. It is curious, isn't it?

~/.config contains the "local" autostart folder [~/.config/autostart].

/etc/xdg/lxsession/Peppermint/autostart, on my system at least, does not duplicate items in ~/.config/autostart. No conflict here.

Welcome to the forum, btw. :D

_________________
Peppermint: Standing Out from the Cloud
Reg. Linux User #432835
http://peppermintos.com/guide/
viewforum.php?f=5
viewforum.php?f=44


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Thu Mar 20, 2014 6:10 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
OK, good question and one I'm glad you asked as it made me look into something that's been bothering me for a while.

It would seem that if
~/.config/lxsession/Peppermint/autostart
exists it takes priority over the global autostart file at
/etc/xdg/lxsession/Peppermint/autostart

I tested this by adding the line
@gedit /home/mark/Desktop/testfile-mark
to
~/.config/lxsession/Peppermint/autostart

and the line
@gedit /home/mark/Desktop/testfile-xdg
to
/etc/xdg/lxsession/Peppermint/autostart

then logged off/on .. sure enough gedit opened a file called testfile-mark but NOT testfile-xdg
I then removed the line from
~/.config/lxsession/Peppermint/autostart
and logged off/on .. and this time gedit opened testfile-xdg

So it would seem ONLY one copy is used, and the one in your home folder (if exists) takes priority.

=======================================================

Further info...

It would seem mac is correct, the folder
~/.config/lxsession/Peppermint
doesn't exist by default

BUT

If you change a theme (or icon theme) through
menu > Preferences > Customize Look and Feel

then that folder gets created (to house the edited desktop.conf file)

and if that folder exists, then the next time you log off/on
/etc/xdg/lxsession/Peppermint/autostart
gets copied to
~/.config/lxsession/Peppermint/autostart
and from that point onwards will take priority for that user.

======================================================

Did that lot make sense ?

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Thu Mar 20, 2014 7:44 pm 
Offline
User avatar

Joined: Tue Feb 04, 2014 11:54 am
Posts: 56
I fired up my old gateway and I have this folder on Peppermint 3 32 bit... I did change my look and feel and customized my menu colors, and also customized my panel bar with a background.png that I found online....
The only thing inside my folder though is one file that has all my desktop setting inside it....


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Thu Mar 20, 2014 7:54 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
I'm only commenting on what I *personally* tested, but yeah I suppose I should have mentioned I was using Peppermint 4

If I get time, and it's important to the OP, I'll try to discover which process is copying the autostart file to the user directory .. but at the end of the day it's really not important as long as you're aware which one to use :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Thu Mar 20, 2014 8:20 pm 
Offline
User avatar

Joined: Tue Sep 27, 2011 12:15 am
Posts: 940
Location: Lake Gaston NC
PCNetSpec wrote:
Did that lot make sense ?

Not a lot. :lol: Just Kidding. Good explanation, Mark.

_________________
Peppermint: Standing Out from the Cloud
Reg. Linux User #432835
http://peppermintos.com/guide/
viewforum.php?f=5
viewforum.php?f=44


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Fri Mar 21, 2014 11:57 am 
Offline

Joined: Thu Mar 20, 2014 3:38 pm
Posts: 4
Sorry that I forgot to mention: I'm using Peppermint 4 64 bit.

Brilliant answers, thanks! Could have come up with the gedit approach myself :D Thanks for doing so for us, PCNetSpec! I tried it and my system is behaving the same way.

So, we can conclude that when a Peppermint directory gets created in ~/.config/lxsession/ (by whatever program or the user) then the global autostart gets copied into it the next time the user logs in. From that point on the user version will be preferred over the global one which won't be executed any more as long as the local file exists.

Nice to discover this seemingly very active community and thanks for the warm welcome!

Greetings,

Frank


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Fri Mar 21, 2014 2:43 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Certainly looks that way ("ps aux" shows no replicated processes) .. and explains why a few edits I made to the global version had no affect.

I'm guessing this an unforeseen consequence of the move to xfwm4 in Peppermint 4 .. but as I said, it's not a "problem" as such once you understand it.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Sat Mar 22, 2014 11:13 am 
Offline

Joined: Thu Mar 20, 2014 3:38 pm
Posts: 4
PCNetSpec wrote:
it's not a "problem" as such once you understand it.


True :)

Solved, i'd say. I can't edit the title, can I? Or am I just absent-minded... :roll:


Top
 Profile  
 
 Post subject: Re: autostart file: global vs user
PostPosted: Sat Mar 22, 2014 12:52 pm 
Offline
User avatar

Joined: Tue Feb 04, 2014 11:54 am
Posts: 56
anorax wrote:
True :)

Solved, i'd say. I can't edit the title, can I? Or am I just absent-minded... :roll:

Sure you can, just click edit on your original post and change the title, then click submit... :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL