Is that possible ?

Thanks

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    3 months ago

    Without telling your distro this question is not helpful.

    Discover uses packagekit, an abstraction layer that can do things like install, update, remove on many different distros.

    So this might be distro-independent, but maybe not.

    Try to enter in the terminal pkcon upgrade and if a GUI password prompt pops up, click on “expand” and see the action that is used like org.somenama.packagekit_update

    This GUI prompt might also already be the one you described

    https://github.com/boredsquirrel/Linux/tree/main/polkit

    • boredsquirrel@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Yes create the directory. This is a standard directory but KDE Neon may not use it. Also you need to place that policy there and reload the polkit daemon (no idea how to do that, just reboot lol).

      And as I said, if the admin password window shows, use the “show details” button at the left to get the ID of the polkit action.

      KDE is a very empowering Desktop!

  • MajinBlayze [any, he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    For flathub packages, you could switch to user installs instead of system. Settings, then click the up arrow next to flathub (user) (if it’s configured, otherwise you’d have to add it)

    It will prevent multiple users from being able to use the same installation of packages, but if you’re the only user if the machine it doesn’t really matter

  • Zamundaaa@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Yes, and many distros have a polkit rule set up to allow installing or updating without a password. You can likely just copy it from Fedora or sth

  • therealjcdenton@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    3 months ago

    Yes but the only way I know is to make your whole system use no password Do sudo visudo and change the line %wheel ALL=(ALL:ALL) ALL To %wheel ALL=(ALL:ALL) NOPASSWD: ALL and make sure you are in the wheel group you can check by doing groups | rg wheel If not add yourself via sudo passwd --add $USER wheel Then edit the file ~/.config/kdesurc to be [super-user-command] super-user-command=sudo

    This is a massive security risk but hey windows let’s you do admin stuff without a password as well