From owner-freebsd-xfce@FreeBSD.ORG Mon Oct 15 00:14:36 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59EE5B7F for ; Mon, 15 Oct 2012 00:14:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 15CF98FC0C for ; Mon, 15 Oct 2012 00:14:35 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q9F0EZ1Z007910 for ; Sun, 14 Oct 2012 18:14:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q9F0EZTQ007907 for ; Sun, 14 Oct 2012 18:14:35 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 14 Oct 2012 18:14:35 -0600 (MDT) From: Warren Block To: xfce@freebsd.org Subject: restart and shutdown permissions Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 14 Oct 2012 18:14:35 -0600 (MDT) X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 00:14:36 -0000 Despite having my user as a member of wheel and operator groups, and having this in /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla: [Restart] Identity=unix-group:operator Action=org.freedesktop.consolekit.system.restart ResultAny=yes ResultInactive=yes ResultActive=yes [Shutdown] Identity=unix-group:operator Action=org.freedesktop.consolekit.system.stop ResultAny=yes ResultInactive=yes ResultActive=yes The user still can't restart or shut down with the xfce buttons. The X session ends, but that's it. It's the same as logout. >From a terminal window, the user can run shutdown -r now or shutdown -p now and it works. Those buttons were not enabled until I installed sudo, but it may be some other permissions thing. I didn't think sudo was required for this. What is missing? From owner-freebsd-xfce@FreeBSD.ORG Mon Oct 15 11:06:15 2012 Return-Path: Delivered-To: freebsd-xfce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 829C3522 for ; Mon, 15 Oct 2012 11:06:15 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 504448FC30 for ; Mon, 15 Oct 2012 11:06:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9FB6FlV011686 for ; Mon, 15 Oct 2012 11:06:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9FB6FYu011685 for freebsd-xfce@FreeBSD.org; Mon, 15 Oct 2012 11:06:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Oct 2012 11:06:15 GMT Message-Id: <201210151106.q9FB6FYu011685@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-xfce@FreeBSD.org Subject: Current problem reports assigned to freebsd-xfce@FreeBSD.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 11:06:15 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). From owner-freebsd-xfce@FreeBSD.ORG Mon Oct 15 17:02:18 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28657C51 for ; Mon, 15 Oct 2012 17:02:18 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EF5898FC08 for ; Mon, 15 Oct 2012 17:02:17 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so5460755pbb.13 for ; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ERb+hm/GpI4wz9SpVQZ5ojggwQCWCe0PybSawDyR8bQ=; b=dRAVzIZDOLui5GLk0frnKRdXoQG3dGMYRUsmi13552vmbVugy0Bmvk3q8ZyGgNlthO BsWk7d8IROI57fGeR61hLnljunBgCaUYkiTSA6ApYFXK6WQsdM3lODw8COolp4rKKiFR HyJMg/DfvnrrrQVjFhw9h0Md5EwYKcUK42yJ/4V0YHiDT2CQ7g+e+GmTpDrCoy6pNzL6 4MdPMNaY5e0lMhWh9QuxwcacBkhRYiUlufe6bpN+dFXo3SUpuV7bUjWMz9k7AH/g43p0 u9n5GV3Ejdm5sJrBpOvz5tUGkNwa81m82JF9nVFlChvfcZbbqzkxqw8Y5B9hprB+a4k+ GUiA== MIME-Version: 1.0 Received: by 10.68.189.5 with SMTP id ge5mr39117932pbc.1.1350320537732; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) Received: by 10.66.193.164 with HTTP; Mon, 15 Oct 2012 10:02:17 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Oct 2012 17:02:17 +0000 Message-ID: Subject: Re: restart and shutdown permissions From: Olivier Duchateau To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 17:02:18 -0000 How do you launch your session ? With xinitrc file provides by x11-wm/xfce4-session or with your own xinitrc. What's your login manager ? You must use login manager which supports sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with x11/xdm). What's main group of your user ? You can test with this line: Identity=unix-user:name_of_user 2012/10/15 Warren Block : > Despite having my user as a member of wheel and operator groups, and having > this in > /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla: > > [Restart] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.restart > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > [Shutdown] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.stop > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > The user still can't restart or shut down with the xfce buttons. The X > session ends, but that's it. It's the same as logout. > > From a terminal window, the user can run shutdown -r now or shutdown -p now > and it works. Those buttons were not enabled until I installed sudo, but it > may be some other permissions thing. I didn't think sudo was required for > this. > > What is missing? > _______________________________________________ > freebsd-xfce@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-xfce > To unsubscribe, send any mail to "freebsd-xfce-unsubscribe@freebsd.org" -- olivier From owner-freebsd-xfce@FreeBSD.ORG Mon Oct 15 22:11:24 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF003B26 for ; Mon, 15 Oct 2012 22:11:24 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 786AB8FC08 for ; Mon, 15 Oct 2012 22:11:24 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q9FMBIHd015632; Mon, 15 Oct 2012 16:11:18 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q9FMBI0u015629; Mon, 15 Oct 2012 16:11:18 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 15 Oct 2012 16:11:18 -0600 (MDT) From: Warren Block To: Olivier Duchateau Subject: Re: restart and shutdown permissions In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Mon, 15 Oct 2012 16:11:18 -0600 (MDT) Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2012 22:11:24 -0000 On Mon, 15 Oct 2012, Olivier Duchateau wrote: > How do you launch your session ? With xinitrc file provides by > x11-wm/xfce4-session or with your own xinitrc. My own .xinitrc, which is just /usr/local/bin/startxfce4 > What's your login manager ? You must use login manager which supports > sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with > x11/xdm). None, just startx. Aha, that is why people are using ck-launch-session. Using that to run startxfce4, it works, and without sudo. Thank you! From owner-freebsd-xfce@FreeBSD.ORG Tue Oct 16 05:07:25 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAB8465E for ; Tue, 16 Oct 2012 05:07:25 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9BEE38FC08 for ; Tue, 16 Oct 2012 05:07:25 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so5910259pad.13 for ; Mon, 15 Oct 2012 22:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ovwrJAPEREPJGH4C2lQiu8orKZedMadFVAkzvOE+9RU=; b=oZrfXdP1BCx9pWosD/WqmbOSiQyPcOPDmTaLVfD6lwSKwm7MIKThoCZut9O5Y+Z0bF MvLiiRkFDdNGdeqwGhSgEiBdvRWxPf16PLOd3im0Mtcz1kAgPcXF0O9tzoi53OCI1CtG OVzRhSTnAHg37LZ4wxPlSc0SM6jJQCNNdtFIM+IE0SjcRXMATOQYe58eq7isu2SGWAcS ttSyMAuleRXzhdUZ1DQjGKMRPaQtvbt9qsPCkPBmwfM/aCZzrf9/8PW4/Vuk5UOfWwKV WbzZp+scDQ1izuBKvKtYJdK5KiSOdvIF85t8bfspnbDVF9pq6yWrQ6VuEoMWYisZomrs vQCA== MIME-Version: 1.0 Received: by 10.66.78.199 with SMTP id d7mr38701370pax.77.1350364045111; Mon, 15 Oct 2012 22:07:25 -0700 (PDT) Received: by 10.66.193.164 with HTTP; Mon, 15 Oct 2012 22:07:24 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Oct 2012 07:07:24 +0200 Message-ID: Subject: Re: restart and shutdown permissions From: Olivier Duchateau To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 05:07:25 -0000 2012/10/16 Warren Block : > On Mon, 15 Oct 2012, Olivier Duchateau wrote: > >> How do you launch your session ? With xinitrc file provides by >> x11-wm/xfce4-session or with your own xinitrc. > > > My own .xinitrc, which is just > > /usr/local/bin/startxfce4 > > >> What's your login manager ? You must use login manager which supports >> sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with >> x11/xdm). > > > None, just startx. Aha, that is why people are using ck-launch-session. > Using that to run startxfce4, it works, and without sudo. Ok, you must add in your xinitrc file `ck-launch-session' before xfce4-session (don't use startxfce4). You can look at /usr/local/etc/xdg/xfce4/xinitrc file. It provides this case (line 84 to 107). You can test with xinitrc file provided by x11-wm/xfce4-session, and then adjust your own. > > Thank you! -- olivier From owner-freebsd-xfce@FreeBSD.ORG Tue Oct 16 07:53:05 2012 Return-Path: Delivered-To: freebsd-xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B01B466 for ; Tue, 16 Oct 2012 07:53:05 +0000 (UTC) (envelope-from gofdx-freebsd-xfce@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0FD0D8FC08 for ; Tue, 16 Oct 2012 07:53:04 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TO1xX-0005BN-RD for freebsd-xfce@freebsd.org; Tue, 16 Oct 2012 09:53:04 +0200 Received: from 79-139-19-75.prenet.pl ([79.139.19.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 09:53:03 +0200 Received: from jb.1234abcd by 79-139-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 09:53:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-xfce@freebsd.org From: jb Subject: Re: restart and shutdown permissions Date: Tue, 16 Oct 2012 07:52:44 +0000 (UTC) Lines: 73 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20100101 Firefox/16.0) X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 07:53:05 -0000 Olivier Duchateau gmail.com> writes: > > 2012/10/16 Warren Block wonkity.com>: > > On Mon, 15 Oct 2012, Olivier Duchateau wrote: > > > >> How do you launch your session ? With xinitrc file provides by > >> x11-wm/xfce4-session or with your own xinitrc. > > > > > > My own .xinitrc, which is just > > > > /usr/local/bin/startxfce4 > > > > > >> What's your login manager ? You must use login manager which supports > >> sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with > >> x11/xdm). > > > > > > None, just startx. Aha, that is why people are using ck-launch-session. > > Using that to run startxfce4, it works, and without sudo. > > Ok, you must add in your xinitrc file `ck-launch-session' before > xfce4-session (don't use startxfce4). > You can look at /usr/local/etc/xdg/xfce4/xinitrc file. It provides > this case (line 84 to 107). > > You can test with xinitrc file provided by x11-wm/xfce4-session, and > then adjust your own. > > > > > Thank you! > I think the right way to 'startx' is with: $ cat .xinitrc exec startxfce4 --with-ck-launch $ cat `which startxfce4` ... XFCE4_SESSION_WITH_CK="1" ... $ cat /usr/local/etc/xdg/xfce4/xinitrc ... # check if we start xfce4-session with ck-launch-session. this is only # required for starting from a console, not a login manager if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then if which ck-launch-session >/dev/null 2>&1; then ck-launch-session xfce4-session ... $ startx With the above, and a *working* moused configuration: $ cat /etc/rc.conf moused_enable="YES" $ cat /usr/local/etc/X11/xorg.conf Section "ServerLayout" ... Option "AutoAddDevices" "false" EndSection I tried to make suspend work with: adding: # cp /usr/ports/x11-wm/xfce4-session/files/pkg-message.in /usr/local/etc/polkit- 1/localauthority/50-local.d/40-system-config-jb.pkla and removing comment lines, and editing it to Identity=unix-group:jb The suspend worked; pressing power button restored the X desktop, with working external USB mouse, but blocked built-in PS/2 mouse. So, how to fix the resume from suspend so that mouses work again ? jb From owner-freebsd-xfce@FreeBSD.ORG Tue Oct 16 11:59:53 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EA4556B for ; Tue, 16 Oct 2012 11:59:53 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 434228FC14 for ; Tue, 16 Oct 2012 11:59:53 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q9GBxqE1023386; Tue, 16 Oct 2012 05:59:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q9GBxqsV023383; Tue, 16 Oct 2012 05:59:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 16 Oct 2012 05:59:52 -0600 (MDT) From: Warren Block To: Olivier Duchateau Subject: Re: restart and shutdown permissions In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 16 Oct 2012 05:59:52 -0600 (MDT) Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Oct 2012 11:59:53 -0000 On Tue, 16 Oct 2012, Olivier Duchateau wrote: > 2012/10/16 Warren Block : >> On Mon, 15 Oct 2012, Olivier Duchateau wrote: >> >>> How do you launch your session ? With xinitrc file provides by >>> x11-wm/xfce4-session or with your own xinitrc. >> >> >> My own .xinitrc, which is just >> >> /usr/local/bin/startxfce4 >> >> >>> What's your login manager ? You must use login manager which supports >>> sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with >>> x11/xdm). >> >> >> None, just startx. Aha, that is why people are using ck-launch-session. >> Using that to run startxfce4, it works, and without sudo. > > Ok, you must add in your xinitrc file `ck-launch-session' before > xfce4-session (don't use startxfce4). > You can look at /usr/local/etc/xdg/xfce4/xinitrc file. It provides > this case (line 84 to 107). > > You can test with xinitrc file provided by x11-wm/xfce4-session, and > then adjust your own. Why should startxfce4 not be used? From owner-freebsd-xfce@FreeBSD.ORG Fri Oct 19 19:16:31 2012 Return-Path: Delivered-To: xfce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF67BC36 for ; Fri, 19 Oct 2012 19:16:31 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id A82BF8FC0C for ; Fri, 19 Oct 2012 19:16:30 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so631592pad.13 for ; Fri, 19 Oct 2012 12:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p5j4gHK87r47FP7uEP9YTl+gmK6JByMbaLD0T2hB2Is=; b=RjgyznlW+mSKorHa1RZmJnYBn4xM8OetSYFHqH3LJ1kSyEuNdk02c/eqMOxVB0cGpp J22cxlJsb/NUc1phF7PStObJd9jfWzgD1p9TfCcGrwwaCgTLfip/rpDXVYlNjU5B8spM 2MxZ4w1dEdVvxpmOy74XIxH1FMMjA+SI2FP3ZXDiITD55yo9I5CnK3G6OPsLYCoqXDYM oeXNG8Ub1MBppUUpWYXibu/eiKjYWg1HqIQBIQf6Yu1sNEvo8wp91MtLXYFrr06wALDp sOuGTRyvRfUnajmxF2shxhnTQqMq04cJpq6rakghiA/q9ClvbMcxEYNKU3+vWOQkFhg7 QDsA== MIME-Version: 1.0 Received: by 10.68.125.230 with SMTP id mt6mr8672018pbb.110.1350674189915; Fri, 19 Oct 2012 12:16:29 -0700 (PDT) Received: by 10.66.193.164 with HTTP; Fri, 19 Oct 2012 12:16:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Oct 2012 19:16:29 +0000 Message-ID: Subject: Re: restart and shutdown permissions From: Olivier Duchateau To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Cc: xfce@freebsd.org X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 19:16:32 -0000 2012/10/16 Warren Block : > On Tue, 16 Oct 2012, Olivier Duchateau wrote: > >> 2012/10/16 Warren Block : >>> >>> On Mon, 15 Oct 2012, Olivier Duchateau wrote: >>> >>>> How do you launch your session ? With xinitrc file provides by >>>> x11-wm/xfce4-session or with your own xinitrc. >>> >>> >>> >>> My own .xinitrc, which is just >>> >>> /usr/local/bin/startxfce4 >>> >>> >>>> What's your login manager ? You must use login manager which supports >>>> sysutils/consolekit. Like x11/slim, x11/gdm (there's an issue with >>>> x11/xdm). >>> >>> >>> >>> None, just startx. Aha, that is why people are using ck-launch-session. >>> Using that to run startxfce4, it works, and without sudo. >> >> >> Ok, you must add in your xinitrc file `ck-launch-session' before >> xfce4-session (don't use startxfce4). >> You can look at /usr/local/etc/xdg/xfce4/xinitrc file. It provides >> this case (line 84 to 107). >> >> You can test with xinitrc file provided by x11-wm/xfce4-session, and >> then adjust your own. > > > Why should startxfce4 not be used? Sorry for delay, you can use startxfce4, but you should add `--with-ck-launch' option in your xinitrc like that: /usr/local/bin/startxfce4 --with-ck-launch -- olivier