|
发表于 2003-7-19 19:37:16
|
显示全部楼层
体的方法可看下面的文章
Running XFce 4
Use startxfce4 to start an XFce session; this includes the panel, the window manager and the desktop background manager. All programs, or symbolic links to programs, in ~/Desktop/Autostart/ will be run by startxfce4 on startup.
To customize the behaviour of startxfce4 copy ${sysconfdir}/xfce4/xinitrc to your personal ~/.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.
Alternatively, you can make your own ~/.xinitrc file or ~/.xsession if you use a graphical login manager.
The settings manager (xfce-mcs-manager) and the window manager run in 'daemon' mode which means they will run in the background. So don't add an '&' after the command. For xfwm4 you have to add the --daemon option when you run the program.
xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-panel
Just add any other apps you want to start before the 'exec xfce4-panel' line. End the lines with an '&' to put it in the background (unless the app can do that by itself).
If you want a safe environment to test all this, here is a script that starts an Xnest session with xfce4:
#!/bin/bash
Xnest :1 -name "Xfce4" +kb -ac &
export DISPLAY=:1
xsetroot -display :1 -solid darkblue &
xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-panel |
|