From owner-freebsd-ports@freebsd.org Tue Aug 23 16:28:58 2016 Return-Path: Delivered-To: freebsd-ports@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 281C2BC2E92 for ; Tue, 23 Aug 2016 16:28:58 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF0A71CFE for ; Tue, 23 Aug 2016 16:28:57 +0000 (UTC) (envelope-from duchateau.olivier@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id f65so169198628wmi.0 for ; Tue, 23 Aug 2016 09:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4tXzQ+zQjMPJIHeqA9k0voOcS8G/GrabjYrnZ6IGfVE=; b=ZIDiBoEt/UiXhif0W0t/B4dgr/2iS4g78dHDU1xKm+20wFhQC6eoL7kBewggjszlzK KzYN/SH4OQOJRtAZypvDLnGTiHi3VQAnNJkbHXhitXCDcEmOtAWvV7E+HqxPY3ARoKqL VvluZFQi4NDe2vDgHs4ToBfAGAND933A16Xtcz19ezsvWyxL2g1QXcKrDAlCzEyjUIXH 8cDvACBsHgc1kpJNYx9hna1hPmFbitOehii1aLMQwFs+pB/OxvLZ62r2znCzQqItH0O9 lq70QcAE4hoVeI66UTDBOzICXCnsDhEt617PFB/r6RqN9vOXpmAPVv/LP5E+xZiVrL2y 84OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4tXzQ+zQjMPJIHeqA9k0voOcS8G/GrabjYrnZ6IGfVE=; b=PUWxico7tg/alX7U2Ue9S8hkpld4xZ4rNd98gsCVmg4ZlmS/pFL87eEdKn/96O9HOu s+WHmW9fFTfwKenzheKpc1YYfmf/dfut7d6dX00ZTpiP/LdWJcVtk2xBantxFBiCO2Tr rvQKsdBKjpmJLe6BK3YGg1CzOl4/jlPbJbwyjr6WO4lx6DaSy4Cz1FCSnJHqzKTC8M6h 2h/EPCi67RhsSdlwDc6tG8s4/ZbcCJl8Tjc1QtyyBw74aI2o9/BrCJyXpK50i4PX0YPD gBbS2ktPY/k90fhE5LdzVXfkwJLHb07o6yaV+n+sSo/ESRlzYzvDBhFBFee9csIgQi06 s9pA== X-Gm-Message-State: AEkoouspGMh6jkH+BnztPqhmhiYZuSSWPwi/kvzW365XonTZFZcGpCCA7ZRgnzUeGJjSlg== X-Received: by 10.194.78.74 with SMTP id z10mr22088926wjw.68.1471969736159; Tue, 23 Aug 2016 09:28:56 -0700 (PDT) Received: from tuborg (AMarseille-655-1-741-50.w109-208.abo.wanadoo.fr. [109.208.194.50]) by smtp.gmail.com with ESMTPSA id q4sm4706656wjk.24.2016.08.23.09.28.54 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 23 Aug 2016 09:28:55 -0700 (PDT) Sender: Olivier Duchateau Date: Tue, 23 Aug 2016 18:25:25 +0000 From: Olivier Duchateau To: abi Cc: freebsd-ports@freebsd.org Subject: Re: xfce - confusing rights to shutdown without polkit rules Message-Id: <20160823182525.37b338368458bc74c2366a2a@freebsd.org> In-Reply-To: <57BC7374.4080106@abinet.ru> References: <20160823162445.ac3fa3ab4b4c72ecc7f0d46d@freebsd.org> <57BC7374.4080106@abinet.ru> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; i386-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 16:28:58 -0000 On Tue, 23 Aug 2016 19:01:56 +0300 abi wrote: > I see, memory played a trick with me. I was sure that --with-ck-launch > is complimentary part of rules. Later, I realized ck is activated by dbus. > > To my excuse: > > 1. polkit sets wrong permissons on /usr/local/etc/polkit-1 folder and > has no rights to read directory > 2. example rules have logic error in braces. > 3. slim (if used) must be compiled without ck support 2. examples rules have no logic error, it's rather cosmetics changes (my point of view), see polkit(8) examples and you can see no additional braces. 3. x11/slim is compiled with ConsoleKit support, why not uses it? > Baah, I lost 2 days :) > > Thank you, now I cooked xfce properly! > > On 23.08.2016 19:24, Olivier Duchateau wrote: > > On Tue, 23 Aug 2016 16:44:32 +0300 > > abi@abinet.ru wrote: > > > >> > >> > >> Hello, > >> > >> I have something mysterious on my installation. I reinstalled, but I > >> still have the issue. > >> > >> xfce4-session states that I must write ck rules to get rights for reboot > >> and shutdown. However, I have all rights (reboot, shutdown, suspend > >> hibernate) without any rules at all. All I need is start session with > >> --with-ck-launch. My user has no additional predefined groups and after > >> reinstall I have xfce only. > >> > >> Maybe I decade :) ago, I remember that ck rules was mandatory. What I'm > >> missing ? I feel frustrated - it's the first time FreeBSD game me more > >> rights, not less =/ > > Hi, > > > > You need to write your own polkit rules, for shutdown, reboot, suspend and so on. > > > > See pkg info -D xfce4-session > > > > Stop to launch your session with option --with-ck-launch (usually it's wrong) x11-wm/xfce4-session provides xinitrc script, uses it! > > > > For more details, see this thread on the forum [1] and my Xfce's FAQ [2]. > > > > Regards, > > > > [1] https://forums.freebsd.org/threads/53490/ > > [2] https://people.freebsd.org/~olivierd/xfce-faq.html > > > >> > >> _______________________________________________ > >> freebsd-ports@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-ports > >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > -- Olivier Duchateau