FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?

David Christensen dpchrist at
Sat Dec 31 05:48:24 UTC 2016

On 12/30/16 03:38, Bernt Hansson wrote:
> Dbus is installed? Think it comes with xfce but not sure.

It looks like dbus is installed:

2016-12-30 20:12:12 toor at t7400 ~
# pkg info | grep -i dbus
dbus-1.8.20                    Message bus system for inter-application 
dbus-glib-0.104                GLib bindings for the D-BUS messaging system

> If it does not work you have to work some magic with devd i think.

STFW I see:

Taking some hints from the latter:

root at t7400:~ # head -n 29 
/usr/local/etc/xdg/menus/ | tail -n 15
         <Merge type="all"/>

root at t7400:~ # head 
[Desktop Entry]
Name=Log Out

root at t7400:~ # which xfce4-session-logout

root at t7400:~ # apropos xfce4-session-logout
xfce4-session-logout(1) - Logs out from Xfce

root at t7400:~ # cd /usr/ports/x11-wm/xfce4-session/

root at t7400:/usr/ports/x11-wm/xfce4-session # make fetch

root at t7400:/usr/ports/x11-wm/xfce4-session # make patch

root at t7400:/usr/ports/x11-wm/xfce4-session # make configure

Here is the source code for xfce4-session-logout:


I don't know GTK or dbus programming, but it looks like 
xfce4-session-logout displays the dialog box and then sends a message to 
dbus depending upon what the user clicks (?).  I don't know how GTK 
decides which buttons are enabled and which are disabled, or how dbug 
processes messages.


More information about the freebsd-questions mailing list