I found these and now it seems to be working, it complains blah, blah, blah but then it mounts the CD or usb disk.
https://bbs.archlinux.org/viewtopic.php?pid=909624
https://wiki.archlinux.org/index.php/PCManFM
so I editied my /etc/slim.conf
Code:
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
# login_cmd if [ -r ~/.xinitrc ]; then exec /bin/bash -login ~/.xinitrc %session; else PREFERRED=%session exec /bin/bash -login /etc/X11/xinit/xinitrc; fi
# login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
# login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc %session
login_cmd exec ck-launch-session dbus-launch /bin/bash -login ~/.xinitrc
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
and then I added the policy kit thingy
as root
Code:
I used geany to make the file /etc/polkit-1/localauthority/50-local.d/55-myconf.pkla
put this in there
[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultActive=yes
ResultInactive=no
saved it
and this is my ~/.xinit
to start openbox
Code:
#!/bin/bash
# Load resources
xrdb -merge .Xresources
# Set up an icon tray
# Set the background color<
xsetroot -solid black
# Fire up apps
fbpanel -p openbox-fbp &
numlockx on &
xscreensaver -no-splash &
# nm-applet &
# printer-applet &
wait 5
pnmixer &
parcellite &
# fwbackups --start-minimized &
zim --plugin trayicon &
keepassx -min &
# qstardict &
# libreoffice --quickstart --nologo &
wait 10
# efax-gtk -s &
# exec dwm-start
# exec ck-launch-session dbus-launch openbox
# exec ck-launch-session openbox
# exec ck-launch-session dbus-launch &
exec openbox
and I had to make a group
groupadd storage
and add me to it
usermod -a -G storage USERNAME
I still need to do some testing to make sure it works.
sonoran and sidebrnz,Thank You for your tips