Re: Using python to start programs after logging in

2017-01-23 Thread Cecil Westerhof
On Thursday 19 Jan 2017 20:08 CET, Cecil Westerhof wrote: > I am writing a python program to start the programs that need to be > started after logging in. I published what I have until now at: https://github.com/CecilWesterhof/PythonScripts/blob/master/startPrograms.py I do not mind some

Re: Using python to start programs after logging in

2017-01-20 Thread John Gordon
In <878tq6hi0s@equus.decebal.nl> Cecil Westerhof writes: > > I think using your window manager's built-in facilities for starting > > programs would be better. Why are you using Python instead? > Because when you use the window managers builtin facilities then all >

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Friday 20 Jan 2017 00:36 CET, Cecil Westerhof wrote: > I wrote a function for switching to the correct virtual desktop and > starting all the commands. I am also using with now: > def do_desktop(desktop, commands, seconds_to_wait = 10): > desktop_command = ('wmctrl -s ' + desktop).split() >

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Friday 20 Jan 2017 01:24 CET, MRAB wrote: >> I wrote a function for switching to the correct virtual desktop and >> starting all the commands. I am also using with now: >> def do_desktop(desktop, commands, seconds_to_wait = 10): >> desktop_command = ('wmctrl -s ' + desktop).split() >>

Re: Using python to start programs after logging in

2017-01-19 Thread MRAB
On 2017-01-19 23:36, Cecil Westerhof wrote: On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote: On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: On 2017-01-19 19:08, Cecil Westerhof wrote: I am writing a python program to start the programs that need to be started after logging in. I

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote: > On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: > >> On 2017-01-19 19:08, Cecil Westerhof wrote: >>> I am writing a python program to start the programs that need to >>> be started after logging in. >>> >>> I have the following imports:

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: > On 2017-01-19 19:08, Cecil Westerhof wrote: >> I am writing a python program to start the programs that need to be >> started after logging in. >> >> I have the following imports: >> from subprocess import check_call, Popen, STDOUT >> from time

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 20:29 CET, John Gordon wrote: > In <878tq6amvj@equus.decebal.nl> Cecil Westerhof > writes: > >> I am writing a python program to start the programs that need to be >> started after logging in. > >> Is this a good way to do things, or could I do it in

Re: Using python to start programs after logging in

2017-01-19 Thread MRAB
On 2017-01-19 19:08, Cecil Westerhof wrote: I am writing a python program to start the programs that need to be started after logging in. I have the following imports: from subprocess import check_call, Popen, STDOUT from time import sleep, strftime And use the following code:

Re: Using python to start programs after logging in

2017-01-19 Thread John Gordon
In <878tq6amvj@equus.decebal.nl> Cecil Westerhof writes: > I am writing a python program to start the programs that need to be > started after logging in. > Is this a good way to do things, or could I do it in a better way? I think using your window manager's built-in

Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
I am writing a python program to start the programs that need to be started after logging in. I have the following imports: from subprocess import check_call, Popen, STDOUT from time import sleep, strftime And use the following code: check_call(tuple('wmctrl -s 10'.split()))