You are not logged in.

#1 2012-11-03 23:44:50

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

[Solved] SpaceFM no longer automounts now that ConsoleKit is no more

Ever since ConsoleKit has now been removed from the repositories whenever I start SpaceFM I get prompted for a password:

Automount: /usr/bin/udisksctl mount -b /dev/sde1 -o 'noexec,nosuid,noatime'
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ===
Authentication is required to mount Kingston DataTraveler 108 (/dev/sde1)
Authenticating as: wfdwfd
Password: 

I'm booting with systemd so is there a dot file I need to configure or a utility I need to install to have SpaceFM automount my USBs and DVDs without the need to enter a password?

Last edited by KairiTech (2012-11-04 22:37:43)

Offline

#2 2012-11-04 11:48:16

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 258

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

I think it is because your user session is not authorised due to consolekit removal.

What output do you get from

loginctl show-session $XDG_SESSION_ID

Offline

#3 2012-11-04 13:15:20

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

I had the same issue to begin with , i used to do startx to enter desktop, but after reading around i found i now have to use "xinit -- vt01" to log to desktop now it all works again.


Certified Android Junkie
Arch 64

Offline

#4 2012-11-04 20:45:49

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

whompus wrote:

I think it is because your user session is not authorised due to consolekit removal.

What output do you get from

loginctl show-session $XDG_SESSION_ID

See below...and below that what's in my .zshrc...

Id=6
Timestamp=Sun, 2012-11-04 15:39:25 EST
TimestampMonotonic=396926895
DefaultControlGroup=name=systemd:/user/wfdwfd/6
VTNr=1
TTY=tty1
Remote=no
Service=login
Leader=3374
Audit=6
Type=tty
Class=user
Active=no
State=online
KillProcesses=no
IdleHint=no
IdleSinceHint=1352061565756529
IdleSinceHintMonotonic=396896690
Name=wfdwfd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]
   then
         if [[ ! -e /tmp/.X0-lock ]]
            then
               xinit /usr/bin/dbus-launch openbox-session
         fi
      exit
fi

Offline

#5 2012-11-04 20:59:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

smakked, update your system - startx works fine now, the required parameters are now provided by /etc/X11/xinit/xserverrc.

KairiTech, how do you start your X session? Active=no in your loginctl output means you're not working in a valid session.

Offline

#6 2012-11-04 21:27:25

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

KairiTech, is your X really running on tty1? I have similar problems on my pc and 'loginctl show-session' gives the same output as yours, but it seems I am actually running on tty2. Ctrl-alt F2 takes me to X and F1 to the login shell. $XDG_VTNR also says I am on 1 though.

Offline

#7 2012-11-04 22:04:02

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

FreeTheBee wrote:

KairiTech, is your X really running on tty1? I have similar problems on my pc and 'loginctl show-session' gives the same output as yours, but it seems I am actually running on tty2. Ctrl-alt F2 takes me to X and F1 to the login shell. $XDG_VTNR also says I am on 1 though.

You are exactly right. [Ctrl]-[Alt]-[F1] takes me to login shell and [Ctrl]-[Alt]-[F2] to X.

I start X with ...

xinit /usr/bin/dbus-launch openbox-session

How do I fix that?

Offline

#8 2012-11-04 22:29:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

Use startx, as I recommended to smakked above.

Offline

#9 2012-11-04 22:37:13

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

Thanks all. A little mix and match of all of your suggestions and it works with...

exec xinit /usr/bin/dbus-launch openbox-session -- vt1

Mostly I seemed to have had the '-- vt1' in the wrong place.

Thanks again.

Offline

#10 2012-11-05 11:51:40

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

Nice, that fixed things for me as well.
Thanks smile

Offline

#11 2012-11-20 19:16:49

impact
Member
Registered: 2012-10-28
Posts: 55

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

I actually want to do something opposite. I am using SpaceFM as desktop manager but I do not want it to automount (I already have devmon for that). Is it possible to disable automounting while still having it run in the background?

Offline

#12 2012-11-20 20:11:37

Antoine
Member
From: Picton Ontario
Registered: 2012-10-11
Posts: 90

Re: [Solved] SpaceFM no longer automounts now that ConsoleKit is no more

KairiTech wrote:

Thanks all. A little mix and match of all of your suggestions and it works with...

exec xinit /usr/bin/dbus-launch openbox-session -- vt1

Mostly I seemed to have had the '-- vt1' in the wrong place.

I realize that this is marked "solved" but: isn't a dbus session launched for us if we pull in  /etc/X11/xinit/xinitrc.d in ~/.xinitrc?

So, if one has

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

in one's ~./xinitrc, it will run

/etc/X11/xinit/xinitrc.d/30-dbus

(which you can look up) for one?

I had a script similar to that in my ~/.xinitrc for a while. Then, one supposedly doesn't need "dbus-launch [whatever]". One does need to start X on the same console one has logged in on, though. I have this

# straight to X
vt=$(fgconsole 2>/dev/null)
(( vt == 1 )) && startx -- vt$vt &> ~/.xlog
unset vt

as the last item in ~/.bashrc  which I found somewhere on the wiki; seems to work.

Am I making too much of this? I like things simple.

Last edited by Antoine (2012-11-20 20:12:38)

Offline

Board footer

Powered by FluxBB