I have trouble with startup some program after Xfce4 started

荒野无灯 admin at ihacklog.com
Fri May 27 08:44:49 CEST 2011


Hi everyone,I am new to Xfce.
I 'm using  Xfce 4.8 under my Archlinux (Kernel verison:  Linux HuangYe.com 2.6.38.6-ARCH-revision1
 #1 SMP PREEMPT Sun May 22 01:10:22 CST 2011 i686 Intel(R) Core(TM)2 Duo CPU T6570 @ 2.10GHz
 GenuineIntel GNU/Linux).

The display manger I used is Slim . below is the config file:

#########################################################
[admin at HuangYe etc]$ cat slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# see the xinitrc.sample file shipped with slim sources
sessions            xfce4,icewm,wmaker,blackbox

screenshot_cmd      import -window root /slim.png
welcome_msg         Welcome to %host
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...
current_theme       slim-archlinux-simple
lockfile            /var/lock/slim.lock
logfile             /var/log/slim.log
################################################

and alse my .xinit file :
exec ck-launch-session dbus-launch --exit-with-session startxfce4
exec cairo-dock -o
exec /usr/local/bin/fcitx -d
exec conky -d

Problem 1: command after "startxfce4"  in .xinit file does not excute.
when I 've logged in , the commands in my .xinit file just does not Excute. I don't know that's why.
I hope someone will help with my problem.

Problem 2:command in ~/.config/foo.desktop starts double instance
As I said above , that way does not go . So I try to write my commands to a .desktop file and put the file to ~/.config/autostart directory.
my files:
$ cat cairo-dock.desktop 

[Desktop Entry]
Hidden=false
Exec=cairo-dock -o
Terminal=false
$ cat fcitx.desktop 
 
 [Desktop Entry]
 Hidden=false
 Exec=fcitx&
 Terminal=false

$ cat conky.desktop 
 
 [Desktop Entry]
 Hidden=false
 Exec=conky -d
 Terminal=false

This does run. But the problem is : the commands in .desktop file runs twice . As I use "  ps aux | grep "cairo-dock" ,I've found 
there are two process named cairo-dock  running there.And also, there are two conky process .But the strange thing is ,there is 
only one process named "fcitx“ .
Hope anyone else could help me. Thank U!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20110527/e933b9a0/attachment.html>


More information about the Xfce mailing list