Quote:
Originally Posted by secipolla
BTW, consolekit is used by Xfce only for its logout dialogue.
To mount drives in pcmanfm you only need gvfs, AFAIK.
polkit-gnome is useful too for apps that require it for authentication like yumex.
You start it with:
/usr/libexec/polkit-gnome-authentication-agent-1
I have Icewm (login with lightdm) and pcmanfm auto-mount drives just fine.
|
Yea I see now, that must be why even for the lxde logout dialogue too you still need consolekit.
I tried today and I need dbus-launch in .xinitrc for pcmanfm to show drives in my fvwm session (even though i have almost every gvfs-* except smb).
I now just start X with the following script in ~/.x simply by executing ./.x
the only thing missing would be to find the lowest screen number not used so you don't even have to specify that if starting multiple sessions but my sh skills are pretty basic.
Code:
#!/bin/sh
if [ -z $1 ]
then screen=0
elif [ $1 -ge 0 ]
then screen=$1
else
echo "Expected screen number, got: $1"
exit
fi
if [ -e /tmp/.X${screen}-lock ]; then
echo "Fatal server error:"
echo "Server is already active for display $screen"
echo " If this server is no longer running, remove /tmp/.X${screen}-lock"
echo " and start again."
echo "You can set screen number as the first Parameter."
exit
fi
vt=$(tty | cut -d 'y' -f 2)
echo Starting X Session: screen $screen, tty$vt
startx -- :$screen vt$vt &> ~/.Xstdo$screen
rm ~/.Xstdo$screen
echo X Session Closed
The reason I forward output is because then I can view it in a conky window on my desktop along with /var/log/messages.
I find this quite interesting because it also seems to be better for security to start X in the same vt as the console session as usually you can switch to the console, kill X and you have full user access even if the X screen was locked.