LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 01-15-2020, 10:31 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
How to make the gnome polkit agent run in fluxbox on AntiX-19


My friend has recently upgraded from AntiX-17 to AntiX-19. She wants to go on using synaptic for updates because she is used to it and she finds the replacement update manager confusing. So we installed synaptic and also polkit-gnome to provide her with a polkit agent for the synaptic-pkexec script. The desktop is fluxbox.

When the agent is started by hand, it runs normally and she can launch synaptic from an icon that I created for her. But when I put it into either .fluxbox/startup or .xinitrc it apparently fails to launch. I cannot find it in the output of ps ax and synaptic cannot be launched from the icon. The synaptic-pkexec script can be launched from a terminal but this is a rather clumsy fix.

The problem seems to be fluxbox-specific. I also have AntiX-19 on a laptop with icewm as my window manager and the gnome polkit agent set to launch from .icewm/startup and it works faultlessly.

There are reports of similar problems in several distros associated with recent polkit changes but I could not find a workable solution.

Last edited by hazel; 01-15-2020 at 10:32 AM.
 
Old 01-15-2020, 11:00 AM   #2
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
Since you installed synaptic, I assume you are using antiX-19 base version.

One way would be to edit (as root) the Exec line in /usr/share/applications/synaptic.desktop file to this.

Code:
Exec=su-to-root -X -c synaptic
No need for policykit.
 
Old 01-15-2020, 11:06 AM   #3
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
Alternatively, if you do want to use polkit, edit the startup file in ~/.desktop-session/startup - uncomment this section

Code:
# Use pkexec (you need to install policykit-1-gnome)
# /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
You shouldn't use .xinitrc on antiX, and the global startup edits should be made to ~/.desktop-session/startup
 
Old 01-15-2020, 11:39 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682

Original Poster
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
That certainly works with icewm on my machine. I'll try it on my friend's machine next time I go round and report back.

btw that startup script line for launching the polkit agent in ~/.desktop-session has a wrong path. The agent now gets installed in /usr/lib/policykit-1-gnome.

Last edited by hazel; 01-15-2020 at 11:41 AM.
 
Old 01-15-2020, 04:03 PM   #5
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by hazel View Post
btw that startup script line for launching the polkit agent in ~/.desktop-session has a wrong path. The agent now gets installed in /usr/lib/policykit-1-gnome.
Thanks for that - I'll correct it for future upgrades.
 
Old 01-28-2020, 03:57 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682

Original Poster
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Yes, that worked on my friend's machine too. Thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gparted not open as user and hdd not mount. Polkit-kde-agent problem? Gugur Linux - General 4 02-08-2019 12:21 PM
LXer: Those Polkit/PolicyKit XML files a pain to view? Polkit Explorer now avaiable... LXer Syndicated Linux News 0 03-31-2013 03:42 PM
Polkit-kde-agent cmake problems f0rdracing Linux From Scratch 0 03-31-2013 03:45 AM
polkit-kde-authentication-agent-1 segfaults on Leave->Turn off computer jamesf Slackware 2 12-19-2010 01:54 PM
LXer: KDE extends Polkit support to polkit-1 LXer Syndicated Linux News 0 12-26-2009 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration