You are not logged in.
I use Xmonad as my WM and thus start a bunch of programs through .xinitrc on bootup. PCManFM normally displays all my drives and usb-sticks etc on the left panel through udisk, however that is all missing when PCManFM first starts. I can get it back easily by simply closing the file manager and starting it again, but then autostarting it is kinda pointless, so I wanna fix this. Here is my .xinitrc:
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
xset +fp /usr/share/fonts/local
xset fp rehash
pidgin &
xset r rate 200 &
numlockx &
urxvtd &
setxkbmap de -variant "nodeadkeys" &
mpd
wallpaper.sh &
mpdas &
#setxkbmap -option terminate:ctrl_alt_bksp &
#setxkbmap -option caps:super &
firefox &
claws-mail &
urxvtc -name "weechat" -e weechat-curses &
urxvtc -name "ncmpcpp" -e ncmpcpp &
skype &
urxvtc -name "ps3mediaserver" -e ps3mediaserver &
xsetroot -cursor_name left_ptr &
trayer --widthtype request --edge top --align right --SetDockType true --SetPartialStrut true &
pcmanfm &
#exec ck-launch-session dbus-launch startfluxbox
#exec i3
exec ck-launch-session dbus-launch xmonadThe only thing I could think of was that pcmanfm starts before its mounting service, so I tried to put a sleep 15s command together with pcmanfm so that it delays the file manager but that had no effect. Thanks in advance for any help. ![]()
Offline
Oh, I think I got it! It's because you start a PCManFM window before calling "dbus-launch".
I'm not sure if it's possible to change that in your .xinitrc file. Alternatively, does xmonad have its own method of autostarting applications? (for example, with Openbox it's the script "~/.config/openbox/autostart") That should fix the problem. ![]()
Offline