Menu

pkexec bugs

Solved
2019-07-07
2019-07-10
  • Jeffrey Needle

    Jeffrey Needle - 2019-07-07

    I use synaptic to install, remove and update software. Best solution for me. I can run synaptic from terminal, but when I add it to my favorites, clicking on it does nothing. Is there some way to make this work? Thanks.

     
  • Louis Rosenblum

    Louis Rosenblum - 2019-07-08

    EDIT: A system wide fix is explained in the next comment down. The process explained here can serve as an alternate method on a per app basis. The system wide fix will be applied to the 19.04.1.4 release.


    Here is a quick-fix. This will work for any GUI application that needs sudo permissions and can be launched from terminal.

    Open file explorer as root (right click -> file exp as root). Navigate to /usr/share/applications.

    Find the file synaptic.desktop (or respective .desktop file for another application). Right click on the file and select edit. Under the line 'exec' change the string from synaptic-pkexec to

    lxterminal -e 'sudo synaptic'

    This will open a terminal window with a password prompt when you click on the shortcut.

    If you don't want to be prompted for a password you can edit the sudoers file: Right click -> edit system -> sudo permissions. Copy one of the "NOPASSWD" lines and change the command to the command path for synaptic.

    There is currently some sort of problem in bluebuntu with the policykit and pkexec for GTK applications that need sudo permissions. I'm working on fixing this in a future release, and I'll make a guide so users of previous and current versions can make the fix to their systems.

     

    Last edit: Louis Rosenblum 2019-07-08
    • Jeffrey Needle

      Jeffrey Needle - 2019-07-08

      Many thanks!  I do hope this gets fixed in the future.  Thanks again.

      On 7/8/19 6:45 AM, Louis Rosenblum wrote:

      Here is a quick-fix. This will work for any GUI application that needs
      sudo permissions and can be launched from terminal.

      Open file explorer as root (right click -> file exp as root). Navigate
      to /usr/share/applications.

      Find the file synaptic.desktop (or respective .desktop file for
      another application). Right click on the file and select edit. Under
      the line 'exec' change the string from synaptic-pkexec to

      lxterminal -e 'sudo synaptic'

      This will open a terminal window with a password prompt when you click
      on the shortcut. If you don't want to be prompted for a password you
      can edit the sudoers file.

      Right click -> edit system -> sudo permissions. Copy one of the
      "NOPASSWD" lines and change the command to the command path for synaptic.

      There is currently some sort of problem in bluebuntu with the
      policykit and pkexec for GTK applications that need sudo permissions.
      I'm working on fixing this in a future release, and I'll make a guide
      so users of previous and current versions can make the fix to their
      systems.


      Problems with Synaptic
      https://sourceforge.net/p/bluebuntu/discussion/general/thread/1695d5ccbb/?limit=25#0a77


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/bluebuntu/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Louis Rosenblum

    Louis Rosenblum - 2019-07-08

    EDIT: This patch has been applied and is now live in version 19.04.1.4


    So I figured out the problem and I'm going to have it fixed it version 19.04.1.4.

    Here is what you can do to fix this for all applications if you are on a previous version.

    • "sudo apt install lxpolkit" (Policy authentication agent from LXDE)
    • Right click on desktop -> 'Edit system' -> 'Autostart and MIMETypes'
    • Add 'lxpolkit &' to the autostart file
    • Save
    • Reboot
     

    Last edit: Louis Rosenblum 2019-07-09

Log in to post a comment.