:: Re: [DNG] desktop environment indep…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Florian Zieboll
Fecha:  
A: dng
Asunto: Re: [DNG] desktop environment independent logout tool
On Thu, 19 May 2016 15:29:40 +0200
Florian Zieboll <f.zieboll@???> wrote:

> Here a quick "universal logout" hack for slim:



That was still a bit too quick, two mistakes (path and name of variable)
need to be corrected. Also, the scripts don't need bash...

## file: /etc/slim.conf
(...)
login_cmd    export slim_session=%session && exec /lwrap.sh
(...)



### file: /lwrap.sh
#!/bin/sh
/bin/bash -login /etc/X11/Xsession $slim_session


### file /universal_logout.sh
#!/bin/sh
kill -s 15 `ps aux | grep lwr[a-z]p.sh | awk '{print $2}'`