[arch-general] Mounting drives via nautilus stopped working after update.

Leonid Isaev lisaev at umail.iu.edu
Mon Nov 28 18:19:55 EST 2011


On Mon, 28 Nov 2011 16:49:21 -0600
Myra Nelson <myra.nelson at hughes.net> wrote:
> 
> Leonid:
> 
> The solution is on the wiki (
> https://wiki.archlinux.org/index.php/Xinitrc), I read it the other
> night, I didn't read far enough, and I applied the
> fix backwards because I didn't read the xfce manually page. It has to do
> with  https://bugs.archlinux.org/task/25031, for which you have a comment.
> I crafted my .xinitrc file like this
> 
> [  numlockx &
>    autocutsel -fork &
>    autocutsel -selection PRIMARY -fork &
> 
>    # Source scripts in /etc/X11/xinit/xinitrc.d/
>    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 openbox-session ]
> 
> Instead of like this:
> 
> [ numlockx &
>   autocutsel -fork &
>   autocutsel -selection PRIMARY -fork &
> 
>   # Source scripts in /etc/X11/xinit/xinitrc.d/
>   #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 openbox-session ]
> 
> The first way udisks also fails for a normal user on the console. The
> second way everything works right.  My bad. Meaculpa. Sorry for the noise.
> 
> before change
> 
> [myra at gandalf /media]:/usr/bin/ck-list-sessions | ps -e u | grep xinitrc
> myra      3680  0.0  0.0  15732   836 tty1     S+   11:49   0:00 xinit
> /home/myra/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth
> /tmp/serverauth.RnDioa9aqT
> 
> after change
> [myra at gandalf ~]:/usr/bin/ck-list-sessions | ps -e u | grep xinitrc
> myra      1866  0.0  0.0  15732   832 tty1     S+   16:24   0:00 xinit
> /home/myra/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth
> /tmp/serverauth.ijpyBJwqre
> 
> Myra

In any normal desktop, the job of the starter scripts is to setup the session by
calling dbus-launsh with appropriate arguments. However, openbox is quite
limited in this sense and does none of the above. That is why you need
dbus-launch in your .xinitrc. And that is also why the wiki is completely wrong.

Finally, why on earth did you pipe ck-list-sessions to ps??? I meant these as
separate commands. I just wanted to see whether you have dbus-launch running,
like this:

$ ps -e u | gr dbus
dbus 769 0.0 0.0 13124 1084 ? Ss 09:27 0:00 /usr/bin/dbus-daemon --system 

lisaev 26173 0.0 0.0 20000 584 pts/0 S 09:38 0:00 dbus-launch --sh-syntax
--exit-with-session

lisaev 26174 0.0 0.0 13264 1304 ? Ss 09:38 0:00 /usr/bin/dbus-daemon --fork
--print-pid 5 --print-address 7 --session

-- 
Leonid Isaev
GnuPG key ID: 164B5A6D
Key fingerprint: C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20111128/145f869c/attachment.asc>


More information about the arch-general mailing list