You are not logged in.

#1 2012-08-11 17:59:54

C5OK5Y
Member
Registered: 2010-07-04
Posts: 48

[SOLVED] Awesome unnecessarily reloads rc.lua

Whenever I execute

dbus-send --system --print-reply --dest='org.freedesktop.ConsoleKit' /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

or

dbus-send --system --print-reply --dest='org.freedesktop.ConsoleKit' /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

the configuration file rc.lua gets reloaded. The problem with this is that I have set some applications to automatically load in the config file so if I close all programs before switching off or rebooting my PC, they get relaunched. Is there a way to stop this reloading? Thanks.

Last edited by C5OK5Y (2012-08-19 16:34:53)

Offline

#2 2012-08-11 18:19:41

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Awesome unnecessarily reloads rc.lua

I believe Awesome communicates with processes via dbus, so every time you execute those strings--which affect session registration--Awesome believes you've reloaded the session (because essentially, you have).  Unless you use different working environments/WMs for different specific tasks, it's much better to launch those apps automatically using ~/.xinitrc.

Offline

#3 2012-08-19 16:34:10

C5OK5Y
Member
Registered: 2010-07-04
Posts: 48

Re: [SOLVED] Awesome unnecessarily reloads rc.lua

OK so I moved my autorun script out of the rc.lua and rewrote it into bash. As the file .xprofile gets read by LXDM (I use it) and .profile gets read by LXDM and the bash login shell, I source my script file from both files and launch graphical applications from .xprofile and command line applications (i.e. mpd) from .profile. Problem solved.

Offline

Board footer

Powered by FluxBB