I'm having a similar problem to Aws, except my startup function doesn't 
work.

My proof of concept startup function is 
https://gist.github.com/anonymous/e48c1d7c4869595d8456 . When I run this, 
startx just leads to a black screen (doesn't respond to any qtile 
shortcuts).
I did the suggested logging of stdout and stderr from .xinitrc, and my 
stdout contains "Hello World" and my stderr is empty. This is very odd, as 
it appears the startup call is working. .qtile.log reports nothing fishy 
(just the standard failed safe_imports for widgets).

Any idea what's going on? I really want to run a fish (shell) script to 
make some calls to xinput to configure my touchpad. If I can't get this 
working, I'll be annoyed but should be able to switch back to a bash based 
solution that I already had (running out of .xinitrc). My current script 
does not work out of .xinitrc.

Thanks,
Eric



On Wednesday, May 13, 2015 at 1:59:55 PM UTC-5, Martin wrote:
>
> 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