LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Thunar 1.4.0 and Fluxbox on -current: no trash or automount usb devices (https://www.linuxquestions.org/questions/slackware-14/thunar-1-4-0-and-fluxbox-on-current-no-trash-or-automount-usb-devices-4175418186/)

andrew.46 07-23-2012 02:44 AM

Thunar 1.4.0 and Fluxbox on -current: no trash or automount usb devices
 
Just synced the latest -current updates and received xfce 4.10, thanks PV and crew! On my machine, using Fluxbox, Thunar does not have a trash can and cannot automouont usb sticks. When using xfce rather than fluxbox both of these features work as expected. Anybody else finding this or have I done something stupid?

Bindestreck 07-23-2012 02:55 AM

Yep, same thing here.

mats_b_tegner 07-23-2012 05:59 AM

Have you been able to automount USB-sticks using Thunar under Fluxbox before? I usually mount USB-sticks using the command line under Fluxbox (ie # mount -t vfat -o rw,users /dev/sdb1 /media/memory)

Update:
Same here, no automount.

andrew.46 07-23-2012 06:03 AM

Quote:

Originally Posted by mats_b_tegner (Post 4735743)
Have you been able to automount USB-sticks using Thunar under Fluxbox before?

Certainly could.

walecha 07-23-2012 06:29 AM

I think you haven't installing gvfs as Thunar using it for mounting (via udisks) and accessing virtual FS such as trash:// and network FS.

Bindestreck 07-23-2012 06:31 AM

gvfs is installed.

andrew.46 07-23-2012 06:34 AM

Quote:

Originally Posted by walecha (Post 4735760)
I think you haven't installing gvfs as Thunar using it for mounting (via udisks) and accessing virtual FS such as trash:// and network FS.

But when I use xfce as an environment thunar has trash and automounting, on the same system fluxbox + thunar does not. Very curious....

mats_b_tegner 07-23-2012 06:35 AM

Quote:

Originally Posted by walecha (Post 4735760)
I think you haven't installing gvfs as Thunar using it for mounting (via udisks) and accessing virtual FS such as trash:// and network FS.

I don't think gvfs is the problem. I checked and I have gvfs installed, but I can't automount USB-sticks using Thunar under Fluxbox or Xfce as a regular user.

andrew.46 07-23-2012 06:42 AM

OK looks like modifying ~/.xinitrc to:

Code:

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startfluxbox
else
  exec /usr/bin/startfluxbox
fi

fixes the issue here, perhaps there is a better way?

Bindestreck 07-23-2012 06:59 AM

Quote:

Originally Posted by andrew.46 (Post 4735776)
OK looks like modifying ~/.xinitrc to:

Code:

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startfluxbox
else
  exec /usr/bin/startfluxbox
fi

fixes the issue here, perhaps there is a better way?

Yep, that worked, thank you.

mats_b_tegner 07-23-2012 08:57 AM

Quote:

Originally Posted by andrew.46 (Post 4735745)
Certainly could.

Have you added any groups to your user account? I have:
users lp floppy audio video cdrom plugdev power netdev

willysr 07-23-2012 10:01 AM

try running xwmconfig twice because the xinitrc script has been changed
on newly install system, automount and trash does work

mats_b_tegner 07-23-2012 10:17 AM

Quote:

Originally Posted by willysr (Post 4735936)
try running xwmconfig twice because the xinitrc script has been changed
on newly install system, automount and trash does work

I re-ran xwmconfig and I have trash and network when running Xfce as a normal user but no automount yet I have enabled automount in thunar-volman and it works as root. When automounted in Xfce as root, USB-sticks are mounted on /run/media/root/KINGSTON. How the heck do I solve this?

Update:
Automounting an USB stick in KDE works for both root and user (i.e /media/KINGSTON)

rworkman 07-23-2012 10:51 AM

Quote:

Originally Posted by andrew.46 (Post 4735776)
OK looks like modifying ~/.xinitrc to:

Code:

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startfluxbox
else
  exec /usr/bin/startfluxbox
fi

fixes the issue here, perhaps there is a better way?

I don't think there is a better way. Have you perhaps tested the other non-XDG window managers to see if they work similarly? That would be nice :-)

willysr 07-23-2012 10:51 AM

so weird... i have automount working on my old laptop using XFCE 4.10
no special tunning, just install fresh
probably it's because a new installation. The bug only occurred when upgrading from previous version?

rworkman 07-23-2012 10:52 AM

Quote:

Originally Posted by willysr (Post 4735971)
so weird... i have automount working on my old laptop using XFCE 4.10
no special tunning, just install fresh
probably it's because a new installation. The bug only occurred when upgrading from previous version?

It's fine in xfce - the trouble is with fluxbox (and probably a few other non-(kde|xfce) environments).

ponce 07-23-2012 12:16 PM

seems that the "dbus-launch --exit-with-session" addition is needed also with blackbox, wmaker, fvwm2 and openbox.
twm, i3 and wmii don't work with thunar even with the addition.

volkerdi 07-23-2012 12:19 PM

Quote:

Originally Posted by ponce (Post 4736048)
seems that the "dbus-launch --exit-with-session" addition is needed also with blackbox, wmaker, fvwm2 and openbox.
twm, i3 and wmii don't work with thunar even with the addition.

NOOOO! Not twm! :(

ponce 07-23-2012 12:27 PM

Sorry Pat, I got it wrong: I launched thunar from one of the pre-started xterms, and it hadn't got the consolekit session.
Starting it from a newly created xterm from the twm environment, it works :)
I have to add to the twm invocation in xinitrc "ck-launch-session dbus-launch --exit-with-session"

mats_b_tegner 07-23-2012 12:40 PM

If I launch Thunar in Fluxbox with "ck-launch-session dbus-launch --exit-with-session" added to .xinitrc Thunar freezes and spits out the following in a terminal window/console:

Code:

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: New owner :1.453 for volume monitor org.gtk.Private.UDisks2VolumeMonitor connected to the bus; seeding drives/volumes/mounts

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: invoking List() failed for type GProxyVolumeMonitorUDisks2: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: New owner :1.455 for volume monitor org.gtk.Private.UDisks2VolumeMonitor connected to the bus; seeding drives/volumes/mounts

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: invoking List() failed for type GProxyVolumeMonitorUDisks2: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

What causes that?

Update: I've reinstalled Xfce and dbus, but I've yet to find where the problem lies...

ponce 07-23-2012 02:00 PM

reverified also with wmii and i3 (sorry I don't them that much and I had made a similar error as with twm): it works fine also there adding the "dbus-launch --exit-with-session".

mats, just FYI, I just tried here with fluxbox with the same addition and I don't have those errors (it works).

andrew.46 07-25-2012 03:59 AM

Looks like the fix is being rolled out for slackware 14 so I shall mark this solved :)

BrZ 07-26-2012 02:02 AM

Quote:

Originally Posted by mats_b_tegner (Post 4736069)
If I launch Thunar in Fluxbox with "ck-launch-session dbus-launch --exit-with-session" added to .xinitrc Thunar freezes and spits out the following in a terminal window/console:

Code:

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: New owner :1.453 for volume monitor org.gtk.Private.UDisks2VolumeMonitor connected to the bus; seeding drives/volumes/mounts

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: invoking List() failed for type GProxyVolumeMonitorUDisks2: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: New owner :1.455 for volume monitor org.gtk.Private.UDisks2VolumeMonitor connected to the bus; seeding drives/volumes/mounts

(Thunar:7622): GVFS-RemoteVolumeMonitor-WARNING **: invoking List() failed for type GProxyVolumeMonitorUDisks2: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

What causes that?

Update: I've reinstalled Xfce and dbus, but I've yet to find where the problem lies...

I had that same problem. Try setting your locale to UTF-8.

mats_b_tegner 07-26-2012 04:22 AM

Quote:

Originally Posted by BrZ (Post 4738264)
I had that same problem. Try setting your locale to UTF-8.

Setting the locale to UTF-8 solved the problem. Thanks. Reverting to locale en-US also works.

htitan 09-01-2012 06:11 PM

still doesn't work for me
 
I updated to current again today. My xinitrc files all have the added dbus-launch stuff--Thunar works fine in XFCE but not in windowmaker. No errors appear when run from a terminal. What else could it be?

If I run: dbus-launch thunar
then it works fine. I never needed to do that before, but launching it this way works.

chess 09-03-2012 10:07 PM

Upgraded to RC4 and Thunar automounting of hard drive partitions and usb sticks works fine in Xfce, Windowmaker, and Fluxbox. If you are having issues, you might want to consider removing some things from ~/.cache -- perhaps the Thunar and any Xfce related directories. I would also remove ~/.gvfs and then try again.

htitan 09-04-2012 10:07 PM

I deleted .dbus, .cache, .gvfs and maybe some more. Still only works if I launch with dbus-launch.

Running thunar alone now now produces an error message:
thunar-volman: Unsupported USB device type.

chess 09-04-2012 10:15 PM

@htitan - is your user a member of the plugdev group? That is required for the 20-plugdev-group-mount-override.pkla file in /etc/polkit/localauthority/50-local.d/.

htitan 09-04-2012 11:44 PM

Yes, user is a member of:

lp, audio, video, cdrom, plugdev and scanner.

andrew.46 09-05-2012 02:59 AM

Quote:

Originally Posted by chess (Post 4772863)
@htitan - is your user a member of the plugdev group? That is required for the 20-plugdev-group-mount-override.pkla file in /etc/polkit/localauthority/50-local.d/.

Hmmm..... my own file is in a slightly different location:

Code:

root@skamandros/home/andrew# find /etc -iname 20-plugdev-group-mount-override.pkla
/etc/polkit-1/localauthority/50-local.d/20-plugdev-group-mount-override.pkla

and I have had to alter ~/.xintirc to:

Code:

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startfluxbox
else
  exec /usr/bin/startfluxbox
fi

to achieve auto-mounting. Not sure if this is relevant?


All times are GMT -5. The time now is 07:50 PM.