Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498976 - x11-wm/awesome - /etc/X11/Sessions/awesome file should not try to run xinitrc* scripts
Summary: x11-wm/awesome - /etc/X11/Sessions/awesome file should not try to run xinitrc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maxim Koltsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-23 00:26 UTC by Gino McCarty
Modified: 2014-01-30 14:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gino McCarty 2014-01-23 00:26:59 UTC
Most *DM will call their own respective Xsession files, 99% of these DM's will execute /etc/X11/xinitrc.d files before procession the awesome Sessions file

this results in most commands being run twice, and more noteable /etc/X11/xinitrc.d execution twice..

Either DM's should do this or awesome Session file should, but not both.

Reproducible: Always
Comment 1 Nikolaj Šujskij 2014-01-29 11:23:17 UTC
Hm... As far as I remember, /etc/X11/Sessions/awesome is actually quite similar to other session files for window managers. I don't use any DMs and /usr/bin/awesome on my boxes is run directly by qingy, but I'm not sure suggested change breaks nothing. What setup do you have?
Comment 2 Gino McCarty 2014-01-29 21:08:11 UTC
(In reply to Nikolaj Sjujskij from comment #1)
> Hm... As far as I remember, /etc/X11/Sessions/awesome is actually quite
> similar to other session files for window managers. I don't use any DMs and
> /usr/bin/awesome on my boxes is run directly by qingy, but I'm not sure
> suggested change breaks nothing. What setup do you have?

I totally agree with your point here, if you did run a modified awesome session file, from startx it would not! run /etc/X11/xinit.d/* files for you..
this could cause problems depending on your setup (consolekit for one gets started here by some* setups)

So it seems that perhaps the DM's shoudl not be doing this xinit.d* and the Session file for awesome should be!

Hmm, a mess, there is no easy way to detect if its already been run or not.
I could add an xinit.d script that checks an env variable, that we can check for later in awesome session file, but this seems complex..
Comment 3 Gino McCarty 2014-01-30 06:26:35 UTC
(In reply to Nikolaj Sjujskij from comment #1)
> Hm... As far as I remember, /etc/X11/Sessions/awesome is actually quite
> similar to other session files for window managers. I don't use any DMs and
> /usr/bin/awesome on my boxes is run directly by qingy, but I'm not sure
> suggested change breaks nothing. What setup do you have?

after doing further research I believe the fault lies with the DM's
it appears all DM's should not* be running xinitrc.d and this should be only executing by each WM..

most notable packages that use xinitrc.d are dbus and *kit

Feel free to close this bug, I'll file a new one for lightdm and slim.


On a side note, the awesome Session file is missing one important line

'''
export command="/usr/bin/awesome"
'''

this must happen prior to xinitrc.d/* execution or dbus session management will not start properly..

will require a separate bug i think
Comment 4 Nikolaj Šujskij 2014-01-30 12:56:46 UTC
Glad that it worked out without me actually doing anything :p

I've pinged maksbotan to close this bug, but you (the reporter) can do it yourself (I can't, since I'm not a dev).
Comment 5 Maxim Koltsov (RETIRED) gentoo-dev 2014-01-30 14:21:39 UTC
Closing as requested.