Gksu has been deprecated

After reading https://itsfoss.com/gksu-replacement-ubuntu/

It is already dropped from Arch and landed in AUR

From the Arch mailing list

What a day!

gksu has been deprecated for years. Applications that require elevated
privileges should use PolicyKit instead - and it seems that everything
in our repositories do. I plan to remove gksu (and libgksu) from
repositories this week.

Bartłomiej

Removal: 1 2

2 Likes

and removed in testing yesterday

:: Different sync package(s) in repository extra x86_64
-------------------------------------------------------------------------------
                             PACKAGE           2014-04-21           2014-04-22
-------------------------------------------------------------------------------
                                gksu              2.0.2-6                    -
1 Like

In the community repo is a very old package called lxmed , a “Menu editor for LXDE” . It depends on gksu , so maybe it is time to remove this package from the repo. It is a Manjaro specific package, last build 31 Aug 2012 and singed by @philm .

1 Like

Packager is unkwon for me but this is Manjaro stuff anyway, and it use Java

Yes this is true, but the .sig file is created by philm

gpg: assuming signed data in 'lxmed-20120515-1-any.pkg.tar.xz'
gpg: Signature made Fr 31 Aug 2012 15:59:51 CEST
gpg:                using RSA key CAA6A59611C7F07E
gpg: Good signature from "Philip Müller (Called Little) <philm@manjaro.org>" [unknown]
1 Like

for me pactree -r gksu return only isousb

@Chrysostomus built a package zensu, which provides gksu.

It is a super simple gksu replacement that can use spacefm, zenity or… I forgot the third option… As frontend. It just prepends sudo to the command.

It is mostly to avoid gtk2 and polkit in minimalistic environments.

We could make a package that provides gksu, and has gksu binary that just prepends pkexec to $@.

4 Likes

some old(?) add env DISPLAY and XAUTHORITY

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY diffuse /etc/pacman.conf
1 Like

This document may be helpful to some:

https://www.freedesktop.org/software/polkit/docs/latest/pkexec.1.html

i am create last week a little script for create action policy and menu from a package
AUR: pkcreate

pkcreate -p diffuse

:: Choose the program to launch (0 to cancel):
1) /usr/bin/diffuse
your program -> 1
::Creation of a polkit action for: /usr/bin/diffuse (Y/n) ? y
:: Create action for /usr/bin/diffuse
:: File saved: /usr/share/polkit-1/actions/org.manjaro.fr.pkexec.diffuse.policy
:: Choice of launcher (0 to cancel):
1) /usr/share/applications/diffuse.desktop
your launcher -> 1
::Personalized menu with pkexec, the launcher: pkexec-diffuse.desktop (Y/n) ? y
:: Create home menu entry /usr/share/applications/diffuse.desktop for: /usr/bin/diffuse
2 Likes