Page 1 of 1

[SOLVED] Thunar usb automount under gdm/openbox-session

PostPosted: Feb 20th, '12, 12:07
by hman
Hi all,
i trying to config Thunar to automount usb devices under openbox-session, but i have a strange behavior:
1. Thunar and PCManFM don't see usb devices
2. if i try to $ udisks --mount /dev/sdb1, it work
3. after mount, Thunar and PCManFM don't see external devices but only mountpoint (/media/<devlabel>)
4. i have also LXDE session installed and if i try to start with this, Thunar automount work fine.

I enabled thunar mount options and i have follow thunar packages installed:
thunar-1.3.0-1.mga1
thunar-archive-plugin-0.3.0-1.mga1
lib64thunar2_0-1.3.0-1.mga1
thunar-thumbnailers-ffmpeg-0.4.1-5.mga1
thunar-vfs-1.2.0-1.mga1
thunar-thumbnailers-0.4.1-5.mga1
thunar-volman-0.6.0-2.mga1

this is my ~/.config/openbox/autostart.sh
Code: Select all
# for gnome settings
/usr/lib64/gnome-settings-daemon &

nvidia-settings -l &

# thunar daemon
thunar --daemon &

# Programs that will run after Openbox has started
tint2 &
sleep 5 &
volumeicon &


could you help me ?

thanks
Armando

[SOLVED]Thunar/PCManFM usb automount under gdm/openbox-sessi

PostPosted: Feb 20th, '12, 13:23
by hman
Sorry,
i realized that in my ~/.config/openbox/autostart.sh i need to add /etc/xdg/openbox/autostart.sh content on head, i saw that is present a called to xdg-autostart that solved my problem, so now my ~/.config/openbox/autostart.sh file content is:
Code: Select all
# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi


# Make GTK apps look and behave how they were set up in the gnome config tools
if test -x /usr/lib64/gnome-settings-daemon >/dev/null; then
  /usr/lib64/gnome-settings-daemon &
elif which gnome-settings-daemon >/dev/null; then
  gnome-settings-daemon &
# Make GTK apps look and behave how they were set up in the XFCE config tools
elif which xfce-mcs-manager >/dev/null; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null; then
  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
fi

# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info
DESKTOP_ENV="OPENBOX"
if which /usr/lib64/openbox/xdg-autostart >/dev/null; then
  /usr/lib64/openbox/xdg-autostart $DESKTOP_ENV
fi


nvidia-settings -l &

# thunar daemon
thunar --daemon &

# Programs that will run after Openbox has started
tint2 &
sleep 5 &
volumeicon &

Re: [SOLVED]Thunar usb automount under gdm/openbox-session

PostPosted: Feb 20th, '12, 22:55
by hman
Ooops,
i have 2 mageia 1 installations, and only one work fine with automount.
Comparing two installation settings i discovered that installation where automount work have
/etc/X11/wmsession.d/26openbox file with SCRIPT:
exec /usr/bin/startopenbox

instead, the other that don't work (say me NOT AUTHORIZED) have /etc/X11/wmsession.d/26openbox file with SCRIPT:
exec ck-launch-session dbus-launch /usr/bin/startopenbox

i discovered that also /etc/X11/wmsession.d/04LXDE file have SCRIPT:
exec /usr/bin/startlxde