Iniciando um script no login e logout do xfce?

5

Eu uso o xfce4 como meu ambiente de desktop, rodando em uma caixa do Gentoo. Eu quero começar o servidor pulseaudio quando eu fizer o login. Em geral, como faço para que um script seja executado assim que eu faço o login no xfce e como faço para que um script seja executado quando eu efetuo o logout?

    
por Bkkbrad 22.08.2009 / 20:44

2 respostas

6

Se você tiver acesso root, sempre poderá editar o script startxfce4. Segundo a documentação:

startxfce4

The startxfce4 is a convenient script to start an Xfce 4 session from the console. It will give you a session with a taskbar and a panel and with the desktop manager and window manager running.

All programs, or symbolic links to programs, in ~/Desktop/Autostart/ will be run by startxfce4 on startup.

To customize the behaviour of startxfce4, copy the file ${sysconfdir}/xfce4/xinitrc to your personal ~/.config/xfce4/ directory and edit that file. If you install from source, ${sysconfdir} defaults to /usr/local/etc; for binary packages it is often set to /etc.

With the inclusion of a session manager in Xfce 4.2, the preferred way to change startup behaviour is by using the "Save session" option in the logout dialog.

Ou você pode usar o programa xfce4-autostart-editor .

Para a parte de logout, consulte a página link para o script de logout pessoal.

    
por 22.08.2009 / 21:34
1

Você pode querer verificar o seguinte, o que lhe permite reproduzir sons de login e logout no Ubuntu xfce4.

link

Provavelmente a solução mais simples que já vi.

    
por 07.09.2012 / 14:31