My guess is that your startup script fails when called with the 
subprocess.call() command. Calling a shell function with subprocess.call is 
not completely equivalent of calling the same script inside a terminal. 
Have you tried the shell=true parameter for the subprocess.call method? 
(note that shell=true is dangerous, security wise). Do you use any 
environment variables in your script that are not available through the 
python instance?

There are many places things can go wrong with your approach and the 
challenge is to collect the error message. Wrap the subprocess.call 
statement into a suitable try statement and see if you can catch and print 
the error message. https://docs.python.org/2/tutorial/errors.html

With your approach, Qtile will *crash* every time autostart.sh causes an 
exception for whatever reason. You really should wrap it in a try statement 
to protect Qtile.

On Tuesday, May 12, 2015 at 6:56:20 PM UTC-4, Aws A. wrote:
>
> Mine looks like this
> # Autostart applications
> @hook.subscribe.startup_once
> def start_once():
>     home = os.path.expanduser('~')
>     subprocess.call([home + '/.config/qtile/autostart.sh'])
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to