You are not logged in.

#1 2010-11-06 18:44:03

m0nhawk
Member
Registered: 2010-01-15
Posts: 25

[bypassed] Awesome + dbus-send

I'm running awesome-wm and in .xinitrc I have ck-launch-session launched.

Also I'm trying to make reboot/halt and suspend/hibernate work through dbus-send.
But when I run:

dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
/org/freedesktop/UPower org.freedesktop.UPower.Suspend

I receive:

Error org.freedesktop.UPower.GeneralError: not authorized

And on:

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit"\
/org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

I receive:

Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized

How can this be solved?

Last edited by m0nhawk (2010-11-06 19:57:04)

Offline

#2 2010-11-06 19:57:40

m0nhawk
Member
Registered: 2010-01-15
Posts: 25

Re: [bypassed] Awesome + dbus-send

This is a bug in consolekit 0.4.2, in 0.4.1 works fine. Waiting for a bugfix.

Offline

#3 2010-11-09 13:52:13

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: [bypassed] Awesome + dbus-send

Yep, buyer beware in [testing]. Is it a known bug? Is it reported somewhere?

edit: yes it is https://bugs.archlinux.org/task/21391 smile

Last edited by quigybo (2010-11-09 14:17:47)

Offline

#4 2011-02-07 20:59:00

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: [bypassed] Awesome + dbus-send

Sorry for bumping this thread, but I couldn't figure out what I need to do to
fix this problem. I'm running consolekit 0.4.3-2 and still see this problem
though the bug linked by quigybo is closed.

My user is in the power group and I start my window manager with:

dbus-launch --sh-syntax --exit-with-session ck-launch-session awesome

ck-list-sessions shows me that I have a session active:

Session2:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat3'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2011-02-07T20:08:47.873895Z'
        login-session-id = '4294967295'

Yet, I cannot suspend as a normal user:

dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
  /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.UPower.GeneralError: not authorized

Running the above command as root successfully suspends my computer.

Am I missing something?

Offline

#5 2011-02-07 22:09:11

zersaa
Member
From: Pskov, Russia
Registered: 2009-02-09
Posts: 29

Re: [bypassed] Awesome + dbus-send

the_isz,
same problem with wmfs

Offline

#6 2011-02-08 10:05:44

the_isz
Member
Registered: 2009-04-14
Posts: 280

Re: [bypassed] Awesome + dbus-send

Hmm... After posting my message yesterday I realized that I get the same error
message when I try to mount using udisks. Did something go wrong with polkit?

Edit:

I think this thread here discusses our problem...

Edit 2:

cgarcia has written a patch against xorg-xdm that solves my problems. See
this thread for details.

Last edited by the_isz (2011-02-09 18:06:26)

Offline

Board footer

Powered by FluxBB