Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFCE shutdown buttons and systemd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lednakashim
n00b
n00b


Joined: 09 Jun 2010
Posts: 27

PostPosted: Tue Nov 18, 2014 5:11 pm    Post subject: XFCE shutdown buttons and systemd Reply with quote

In the good old days we had OpenRC, consolekit, and SLIM, having these correctly installed would make the restart/shutdown buttons in XFCE work, and it was easy to check if consolekit was started.

Now i'm using systemd and LightDM, and I understand I shouldn't have Consoekit installed. I recently did a `emerge world -e`, and I still don't have my buttons!

If I'm using systemd, what should I check? Does XFCE support systemd?

Interestingly, the shutdown buttons work in LightDM.

Code:
USE="bindist mmx sse sse2 avx avx2 javascript dbus -multilib wifi ethernet systemd X opengl cuda gpm keyboard mouse opengl -consolekit gif png jpeg mp3 mp4 bmp ogg eps tiff jpeg2k alsa ppp pdf djvu jpeg ncurses raw x264 xvid truetype typel cleartype corefonts midi opencl sasl cxx sound -cups  wifi -kde -gnome synaptics svg bzip2 cxx nvidia branding alsa mpeg matroska ogg pulseaudio flac -bindist vim win32 win64 rar -wayland -minimal udisks upower gksu networkmanager gtk gnome-keyring"
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Wed Nov 19, 2014 1:43 am    Post subject: Reply with quote

I guess I'm still living the "good old days" with my xfce box, it still works fine with openrc.

I see that Gentoo backported the systemd patches into xfce4-base/xfce-4.10.1-r2, so it *should* work. But I've never tried it unfortunately, so some guessing and debug here.

Systemd should be doing what consolekit was doing, but the API is different. Does loginctl report a valid session when you start xfce?

(making a note for myself : had to hack /etc/xdg/xfce4/kiosk/kioskrc on my xfce4 server so I don't accidentally shut it down by a errant misclick... but this isn't the problem you're seeing - it's the exact opposite.)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
lednakashim
n00b
n00b


Joined: 09 Jun 2010
Posts: 27

PostPosted: Wed Nov 19, 2014 7:26 am    Post subject: Reply with quote

I'm not really sure what this does, but I think its right?

Code:
toast@localhost ~ $ loginctl                             
   SESSION        UID USER             SEAT           
        c1          0 root             seat0           
        c2       1000 toast            seat0           

2 sessions listed.
toast@localhost ~ $ loginctl show-session $XDG_SESSION_ID
Id=c2
Name=toast
Timestamp=Wed 2014-11-19 01:00:18 CST
TimestampMonotonic=10614618
VTNr=7
Display=:0
Remote=no
Service=lightdm
Desktop=xfce
Scope=session-c2.scope
Leader=458
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Back to top
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 472
Location: Brisbane, Australia

PostPosted: Tue Nov 25, 2014 11:43 pm    Post subject: Re: XFCE shutdown buttons and systemd Reply with quote

lednakashim wrote:
In the good old days we had OpenRC, consolekit, and SLIM, having these correctly installed would make the restart/shutdown buttons in XFCE work, and it was easy to check if consolekit was started.

Now i'm using systemd and LightDM, and I understand I shouldn't have Consoekit installed. I recently did a `emerge world -e`, and I still don't have my buttons!

If I'm using systemd, what should I check? Does XFCE support systemd?

Interestingly, the shutdown buttons work in LightDM.

Code:
USE="bindist mmx sse sse2 avx avx2 javascript dbus -multilib wifi ethernet systemd X opengl cuda gpm keyboard mouse opengl -consolekit gif png jpeg mp3 mp4 bmp ogg eps tiff jpeg2k alsa ppp pdf djvu jpeg ncurses raw x264 xvid truetype typel cleartype corefonts midi opencl sasl cxx sound -cups  wifi -kde -gnome synaptics svg bzip2 cxx nvidia branding alsa mpeg matroska ogg pulseaudio flac -bindist vim win32 win64 rar -wayland -minimal udisks upower gksu networkmanager gtk gnome-keyring"


Ask yourself "Why do I need systemd?"

I installed last week Gentoo as a VirtualBox client with 256K ram. Using openrc, grub static, and Xfce Desktop and Slim. Works fine and runs with 256K Ram.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum