LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11:31 AM   #1
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,057
Blog Entries: 11

Rep: Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238
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 11:32 AM.
 
Old 01-15-2020, 12:00 PM   #2
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 484

Rep: Reputation: 148Reputation: 148
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, 12:06 PM   #3
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 484

Rep: Reputation: 148Reputation: 148
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, 12:39 PM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,057

Original Poster
Blog Entries: 11

Rep: Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238
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 12:41 PM.
 
Old 01-15-2020, 05:03 PM   #5
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 484

Rep: Reputation: 148Reputation: 148
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, 04:57 AM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,057

Original Poster
Blog Entries: 11

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:21 PM
LXer: Those Polkit/PolicyKit XML files a pain to view? Polkit Explorer now avaiable... LXer Syndicated Linux News 0 03-31-2013 04:42 PM
Polkit-kde-agent cmake problems f0rdracing Linux From Scratch 0 03-31-2013 04:45 AM
polkit-kde-authentication-agent-1 segfaults on Leave->Turn off computer jamesf Slackware 2 12-19-2010 02:54 PM
LXer: KDE extends Polkit support to polkit-1 LXer Syndicated Linux News 0 12-26-2009 01:00 PM

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

All times are GMT -5. The time now is 02:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration