BxLUG groupe des utilisateurs de GNU/Linux de Bruxelles

Espace membres

«Cleaning» of GNOME processes at logoff

GNOME processes sometimes are not closed immediately when the user leaves it's graphical session. OAF, BONOBO and Gconf are of them, and they can cause trouble if the same user tries to login back soon after leaving and without rebooting in the meanwhile.

As the goal is to avoid rebooting as much as we can, like a series of OS I will not name here, you can use the available tools which are not used on Debian by default.

To do this, we are going to use the tools oaf-slay, bonobo-slay, … which are really easy to use. You just have to launch them, without arguments, to have them kill properly all the related processes running as the current user.

We are going to modify GDM, and particularly the script it uses when a user leaves its session: /etc/gdm/PostSession/Default.

        if [ -x /usr/bin/gconftool-2 ]; then
                /usr/bin/gconftool-2 --shutdown
        fi

        if [ -x /usr/bin/bonobo-slay ]; then
                /usr/bin/bonobo-slay
        fi

        if [ -x /usr/bin/oaf-slay ]; then
                /usr/bin/oaf-slay
        fi
Feel free to substitute /usr/bin/gconftool-2 with /usr/bin/gconftool alone if you are using GNOME 1.x and not GNOME 2.x applications.

See also «Cleaning» Evolution's processes at logoff.

[1] this is probably not even necessary

Bienvenue dans le monde du libre