linuxmint / mintdesktop

Desktop configuration tool for MATE and Xfce
http://www.linuxmint.com
56 stars 25 forks source link

When using 'Switch User' window-manager-launcher terminates without starting a window manager #7

Closed tuxlifan closed 8 years ago

tuxlifan commented 8 years ago

On Linux Mint 17.3 'Rosa', MATE Edition Package: mintdesktop, Version: 3.4.3

The problem seems to be that window-manager-launcher is trying to kill a process (e.g. marco) belonging to the first user; in line 36 ("os.kill(pid, signal.SIGKILL)")

A solution would be to modify the ps invocation in line 28 ("p = subprocess.Popen(['ps', '-A'], stdout=subprocess.PIPE)") in a way that limits ps output to processes belonging to the current user.

A quick&dirty workaround is to wrap the 'kill line' in a try-except block and catch and ignore the PermissionError (patch attached).

trycatchPermissionError.txt

yashengy commented 8 years ago

Alternatively, one can kill only those processes belong to the current user. Patch attached.

window-manager-launcher.diff.txt

monsta commented 8 years ago

@clefebvre: confirmed - see http://forums.linuxmint.com/viewtopic.php?f=206&t=212794

clefebvre commented 8 years ago

Funny bug that one :)

We'll get that fixed today. Thanks for the feedback.