From owner-freebsd-questions@freebsd.org Sat Dec 31 06:05:55 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C82AC98CF2 for ; Sat, 31 Dec 2016 06:05:55 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49A401E77 for ; Sat, 31 Dec 2016 06:05:55 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Fri, 30 Dec 2016 22:05:53 -0800 Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? To: freebsd-questions@freebsd.org References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> <507828f7-6621-15f8-f55d-0ad172857fc1@holgerdanske.com> <20161230154841.7d2561e2.freebsd@edvax.de> From: David Christensen Message-ID: Date: Fri, 30 Dec 2016 22:05:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161230154841.7d2561e2.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2016 06:05:55 -0000 On 12/30/16 06:48, Polytropon wrote: > Or with system provided commands: add yourself to the > required groups (wheel, operator), Already done: 2016-12-30 21:58:34 dpchrist@t7400 ~ $ grep dpchrist /etc/group wheel:*:0:root,dpchrist operator:*:5:root,dpchrist video:*:44:dpchrist dpchrist:*:: > then add a menu entry > for "System Shutdown" (shutdown -p now) and "System Reboot" > (shutdown -r now); How? > You need DBus, I believe I have it: 2016-12-30 21:59:33 dpchrist@t7400 ~ $ pkg info | grep dbus dbus-1.8.20 Message bus system for inter-application communication dbus-glib-0.104 GLib bindings for the D-BUS messaging system > PolicyKit I believe I have it: 2016-12-30 21:51:54 toor@t7400 ~ # pkg info | grep policykit policykit-0.9_10 Framework for controlling access to system-wide components policykit-gnome-0.9.2_7 GNOME frontend to the PolicyKit framework > and ConsoleKit installed, if I > remember correctly, I believe I have it: 2016-12-30 21:51:59 toor@t7400 ~ # pkg info | grep consolekit consolekit-0.4.5_4 Framework for defining and tracking users > and _maybe_ even HAL (but check that > again with the current documentation). I believe I have it: 2016-12-30 21:52:41 toor@t7400 ~ # pkg info | grep hal hal-0.5.14_31 Hardware Abstraction Layer for simplifying device access > Those services must be running. It looks like dbus is running: 2016-12-30 22:01:25 toor@t7400 ~ # ps -A | egrep -i 'dbus|policykit|consolekit|hal' 763 - I 0:00.00 /usr/local/bin/dbus-launch --sh-syntax --exit-with-se 764 - Is 0:00.21 /usr/local/bin/dbus-daemon --fork --print-pid 4 --pri 785 - I 0:00.01 /usr/local/libexec/gvfs-hal-volume-monitor 74843 3 S+ 0:00.00 egrep -i dbus|policykit|consolekit|hal How do I start policykit, consolekit, and hal? > Check if "startxfce4" requires some of > the "--with-ck-something" options. 2016-12-30 21:57:26 dpchrist@t7400 ~ $ cat .xsession #!/bin/sh exec /usr/local/bin/startxfce4 --with-ck-launch startxfce4 does not appear to have a man page or provide command-line help (?). Where are startxfce4 options documented? David