You are not logged in.

#1 2011-12-26 03:16:08

TheCash
Member
Registered: 2010-07-14
Posts: 41

auto mounting in thunar [SOLVED]

I am having problems getting auto mounting to work in thunar. I followed this guide with no success

https://wiki.archlinux.org/index.php/Th … tomounting

I would like thunar to show the device on the side panel.

Last edited by TheCash (2011-12-26 08:24:21)

Offline

#2 2011-12-26 03:45:54

headkase
Member
Registered: 2011-12-06
Posts: 1,978

Re: auto mounting in thunar [SOLVED]

This link, Here, where it says:

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec ck-launch-session startxfce4

modify the last line to say:

exec ck-launch-session dbus-launch --exit-with-session startxfce4

That's what I had to do anyway.  It only applies if that is how you're launching Xfce?

Last edited by headkase (2011-12-26 03:46:39)

Offline

#3 2011-12-26 03:59:25

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: auto mounting in thunar [SOLVED]

I'm not using xfce I'm using just openbox
so whould I change it to openbox-session?

EDIT: also I am using slim

Last edited by TheCash (2011-12-26 04:05:37)

Offline

#4 2011-12-26 04:11:48

headkase
Member
Registered: 2011-12-06
Posts: 1,978

Re: auto mounting in thunar [SOLVED]

Ok, I don't know about openbox.  I just set up Xfce over today and yesterday and I had to add that dbus launch to get USB thumb-drives to mount automatically.  I'm also using slim BUT openbox is not Xfce so it probably won't help.  The "startxfce4" is supposed to launch dbus but obviously it doesn't do it properly when it comes to auto-mounting devices in Xfce4.  So, might not hurt to try but I don't think the chances are good.

Offline

#5 2011-12-26 04:16:15

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: auto mounting in thunar [SOLVED]

I'll try that.  Any other suggestions anyone?

EDIT: Didn't work

Last edited by TheCash (2011-12-26 04:18:31)

Offline

#6 2011-12-26 04:59:57

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: auto mounting in thunar [SOLVED]

Offline

#7 2011-12-26 05:16:25

StuMx
Member
Registered: 2010-02-07
Posts: 14
Website

Re: auto mounting in thunar [SOLVED]

In order to automount in openbox you need to install gvfs

pacman -S gvfs

Also, if you're using thunar as file manager you need to install thunar-volman

pacman -S thunar-volman

I know my english sucks

Offline

#8 2011-12-26 05:39:03

grandmouse
Member
From: germany, bonn
Registered: 2005-05-14
Posts: 90

Re: auto mounting in thunar [SOLVED]

~/.xinitrc (before last line you can start programs that do not need dbus)

#!/bin/sh
exec ck-launch-session dbus-launch --exit-with-session openbox-session

~/.config/openbox/autostart (to start programs into the dbus session of openbox)

#!/bin/sh
#pcmanfm -d &
thunar --daemon &

/etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla

[Storage]
Identity=unix-group:storage
Action=org.freedesktop.udisks.*
ResultAny=yes
ResultActive=yes
ResultInactive=no

/etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla (try this if power management fails)

[Power]
Identity=unix-group:power
Action=org.freedesktop.upower.*
ResultAny=yes
ResultActive=yes
ResultInactive=no

thunar-volman is only required if you want popups on automount or set default actions, the device shows up anyways in the sidebar.

Offline

#9 2011-12-26 06:38:58

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: auto mounting in thunar [SOLVED]

grandmouse's suggestion worked but now when i click on the icon is says:

"failed to mount not authorized"

What do I need to do to fix the Permissions?

Offline

#10 2011-12-26 07:18:16

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: auto mounting in thunar [SOLVED]

What StuMx said, holds true (you need gvfs and thunar-volman installed). As for .xinitrc, the important thing is to comment out the bit that loads stuff from /etc/X11/xinit/xinitrc.d (mainly 30-dbus, which loads up yet another dbus session and is messing things up).

Please try:

#!/bin/sh

#if [ -d /etc/X11/xinit/xinitrc.d ]; then
#  for f in /etc/X11/xinit/xinitrc.d/*; do
#    [ -x "$f" ] && . "$f"
#  done
#  unset f
#fi

exec ck-launch-session dbus-launch --exit-with-session openbox-session

Output of ck-list-sessions and pstree would be helpful.

Offline

#11 2011-12-26 07:32:28

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: auto mounting in thunar [SOLVED]

samuvuo

my .xintirc was already like that.

Output of ck-list-sessions

Session3:
	unix-user = '1000'
	realname = 'Eric Cash'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-12-26T07:08:38.302491Z'
	login-session-id = '1'
Session2:
	unix-user = '1000'
	realname = 'Eric Cash'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0.0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-12-26T07:08:37.977991Z'
	login-session-id = '1'
Session1:
	unix-user = '1000'
	realname = 'Eric Cash'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0.0'
	x11-display-device = ''
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-12-26T07:08:37.881589Z'
	login-session-id = '1

output of pstree

init─┬─6*[agetty]
     ├─chromium─┬─2*[chromium───4*[{chromium}]]
     │          └─nacl_helper_boo
     ├─console-kit-dae───64*[{console-kit-da}]
     ├─crond
     ├─2*[dbus-daemon]
     ├─dbus-launch
     ├─dconf-service───2*[{dconf-service}]
     ├─dhcpcd
     ├─gvfs-fuse-daemo───3*[{gvfs-fuse-daem}]
     ├─gvfs-gdu-volume
     ├─gvfsd
     ├─gvfsd-dnssd
     ├─gvfsd-metadata
     ├─gvfsd-network───2*[{gvfsd-network}]
     ├─gvfsd-trash
     ├─polkitd───{polkitd}
     ├─slim─┬─X
     │      └─ck-launch-sessi───ck-launch-sessi───openbox─┬─chromium─┬─chromium+++
     │                                                    │          └─16*[{chr+
     │                                                    └─urxvt───bash───pstr+
     ├─syslog-ng───syslog-ng
     ├─thunar───2*[{thunar}]
     ├─tint2
     ├─udevd───2*[udevd]
     ├─udisks-daemon─┬─udisks-daemon
     │               └─2*[{udisks-daemon}]
     ├─wicd─┬─dhcpcd
     │      └─wicd-monitor
     ├─wicd-client
     ├─wpa_supplicant
     └─xfconfd

EDIT: there is 2 ck-launch-session could that be the problem?

Last edited by TheCash (2011-12-26 07:35:00)

Offline

#12 2011-12-26 08:07:33

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: auto mounting in thunar [SOLVED]

TheCash wrote:

EDIT: there is 2 ck-launch-session could that be the problem?

Most likely. How's you login_cmd in /etc/slim.conf? ck-launch-session launched there also?

grep ^login /etc/slim.conf

Offline

#13 2011-12-26 08:23:47

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: auto mounting in thunar [SOLVED]

Thanks for the help removing ck-launch-session from /etc/slim.conf fixed it.

Marking as solved

Offline

Board footer

Powered by FluxBB