Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LXDE without polkit
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Sat Oct 03, 2020 10:46 am    Post subject: Reply with quote

So I amend my advice, don't use polkit and don't use dbus and lxde will work perfectly fine, with the exception of things like shutdown/reboot buttons/options.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1549
Location: South America

PostPosted: Sat Oct 03, 2020 5:44 pm    Post subject: Reply with quote

If I understand correctly, the way this is supposed to work, is:

1) Something (setup-dependent) runs startlxde
2) startlxde runs lxsession
lxde-common-0.99.1/startlxde.in
Code:
#!/bin/sh
# ...
exec @prefix@/bin/lxsession -s LXDE -e LXDE
3) lxsession starts Openbox and lxpolkit
lxsession-0.5.4/lxsession/main.vala
Code:
// ...
namespace Lxsession {

    /* Global objects */
// ...
    PolkitApp global_polkit;
// ...
    public class Main: GLib.Object
    {
// ...
    public static int main(string[] args) {
// ...
        /* Autostart if not disable by command line */
        if (autostart == false)
        {
            /* Launch other specific applications */
// ...
            if (global_settings.get_item_string("Session", "polkit", "command") != null)
            {
                var securitypolkit = new PolkitApp();
                global_polkit = securitypolkit;
                global_polkit.launch();
            }
// ...
    }
}

}
4) When lxpolkit tries to register itself with polkitd as an authentication agent using the system-wide message bus, dbus-daemon starts polkitd (because of /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service).

However, the global_settings.get_item_string("Session", "polkit", "command") != null check makes me think that it would be possible to disable the launch of lxpolkit through configuration. Which would be a good thing if lxpolkit is not built and Polkit is not installed :)
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2965
Location: Edge of marsh USA

PostPosted: Sun Oct 04, 2020 2:04 am    Post subject: Reply with quote

Anon-E-moose wrote:
So I amend my advice, don't use polkit and don't use dbus and lxde will work perfectly fine, with the exception of things like shutdown/reboot buttons/options.

Why, in particular, do you not want polkit and dbus? They seem to provide useful functionality. Why do without?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Sun Oct 04, 2020 10:00 am    Post subject: Reply with quote

figueroa wrote:
Anon-E-moose wrote:
So I amend my advice, don't use polkit and don't use dbus and lxde will work perfectly fine, with the exception of things like shutdown/reboot buttons/options.

Why, in particular, do you not want polkit and dbus? They seem to provide useful functionality. Why do without?


Because I don't need them for anything else, dbus IS for communicating between different apps, usually within a DE itself, I don't run a DE nor do I run any apps that need to talk to another app. Why do I need dbus? Just to have it on my system? No thanks, that's called bloat. Polkit is a possibly finer grained sudo replacement. Again I don't need it, nor does anyone else on a single user system. I mention things because there are those who like me don't want extra programs to get in the way of keeping my system, small and responsive. So I offer a different look at setting things up.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
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
Goto page Previous  1, 2
Page 2 of 2

 
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