PCmanFM USB Stick Mounting

You have a problem with Slackel? Post here and we'll do what we can to help.
Post Reply
atipp
Posts: 42
Joined: 04 May 2016 03:02

PCmanFM USB Stick Mounting

Post by atipp »

Slackel Openbox 64bit

I am using fluxbox as my prefered desktop instead of openbox
since I am more familiar with it and just like it.

There is one small problem PCmanFM will not recognize a USB
stick when inserted, that is it does not mount it since it does not show.

However, when I first open a session using openbox, then logout and
login with fluxbox my default, after that PCmanFM will immediately
see and mount a USB stick.

What has to be done that in fluxbox PCmanFM will see a USB stick
whithout first opening openbox?
djemos
Site Admin
Posts: 676
Joined: 15 Apr 2016 06:03

Re: PCmanFM USB Stick Mounting

Post by djemos »

It seems that pcmanfm is starting wrong in your fluxbox startup file, so cannot mount usd-sticks.
edit ~/.fluxbox/startup file and change the line for pcmanfm as follows

Code: Select all

(sleep 1 && [ -x /usr/bin/pcmanfm ] && dbus-launch pcmanfm --desktop) &
The full startup file from user-settings-fluxbox package is

Code: Select all

#!/bin/sh
#
# fluxbox startup-script:

# Change your keymap:
xmodmap "~/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#

# Start DBUS session bus:
if [ -z "\$DBUS_SESSION_BUS_ADDRESS" ]; then
   dbus-launch --sh-syntax --exit-with-session
fi

(sleep 1 && [ -x /usr/bin/pcmanfm ] && dbus-launch pcmanfm --desktop) &
([ -x /usr/bin/batti ] && dbus-launch batti) &
# Create the apps submenu if it's not there
[ ! -f ~/.fluxbox/xdg_menu ] && \
	[ -x /usr/bin/xdgmenumaker ] && \
	xdgmenumaker -f fluxbox --no-submenu > ~/.fluxbox/xdg_menu

# Load the last used wallpaper
if [ -x /usr/bin/feh ] && [ -x ~/.fehbg ]; then
	~/.fehbg
else
	fbsetbg -l
fi

# Only run fbxkb when there are more than 1 available layouts
setxkbmap -query | grep "^layout:" | sed "s/^layout: *//" | \
	grep -q "," && [ -x /usr/bin/fbxkb ] && fbxkb &

# Create XDG user dirs
[ -x /usr/bin/xdg-user-dirs-update ] && xdg-user-dirs-update &
[ -x /usr/bin/parcellite ] && parcellite &
[ -x /usr/bin/wicd-gtk ] && wicd-gtk -t &
[ -x /usr/bin/volumeicon ] && volumeicon &
[ -x /usr/bin/batti ] && batti &
[ -x /usr/bin/salix-update-notifier ] && salix-update-notifier &
[ -x /usr/bin/xscreensaver ] && xscreensaver -nosplash &
[ -x /usr/bin/fbpanel ] && fbpanel) &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec fluxbox
#exec ck-launch-session dbus-launch fluxbox
# or if you want to keep a log:
# exec fluxbox -log "~/.fluxbox/log"
The source package is at slackel repos user-settings-fluxbox
you can download it to look at it.
You can install the package with slapt-get
All the settings for fluxbox and new created users will be copied to /etc/skel There will be a .fluxbox folder with the fluxbox settings.
atipp
Posts: 42
Joined: 04 May 2016 03:02

Re: PCmanFM USB Stick Mounting

Post by atipp »

Thank you so much!

All I had to do put

Code: Select all

# Start DBUS session bus:
if [ -z "\$DBUS_SESSION_BUS_ADDRESS" ]; then
   dbus-launch --sh-syntax --exit-with-session
fi
on top of my startup file.
Post Reply