<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6794&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6794</link>
		<description><![CDATA[The most recent posts in gksu is depreciated in Daedalus - can I still use it as .deb package.]]></description>
		<lastBuildDate>Tue, 14 Jan 2025 22:08:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54084#p54084</link>
			<description><![CDATA[<p>Or use my <strong>rrqsu</strong> <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>#!/bin/sh
set -e

if [ $(id -un) = root ] ; then
    exec &quot;$@&quot;
fi

if [ &quot;$SUDO_ASKPASS&quot; = &quot;$0&quot; ] ; then
    exec yad --entry --title=&quot;PASSWORD&quot; --entry-label=&quot;$*&quot; --hide-text
fi

exec env SUDO_ASKPASS=&quot;$0&quot; sudo -A &quot;$@&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 14 Jan 2025 22:08:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54084#p54084</guid>
		</item>
		<item>
			<title><![CDATA[Re: gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54077#p54077</link>
			<description><![CDATA[<p>I have despised pkexec since I first saw it, broke my heart to see gksu go bye-bye. You should be able to use it the same way gksu was used, just a simple &quot;gksu (program name)&quot; for things that need authentication, but oh hell no doesn&#039;t work like that. Piece of crap.</p><p>My current workaround: A script that adds all the pkexec bulls**t necessary to make authentication happen. Called it &quot;gksu.sh&quot; so now I just use that the same way I used to use gksu, i.e. &quot;gksu.sh (program-name)&quot;. This is especially helpful for file-manager extensions that I wrote a long time ago that used gksu.</p><div class="codebox"><pre><code># Script to convert gksu to pkexec for extensions already written
# without adding a lot of code to the .desktop command line.
# Usage: &quot;gksu.sh [program]&quot;

#!/bin/bash
if [ -z $1 ]; then
 echo -e &quot;at least 1 argument required!\n&quot; &gt;&gt; /dev/stderr
 exit 1
fi
COMMAND=$1
shift #shift first arg
for ARG in &quot;$@&quot;
do
 if [ -z &quot;$ARGS&quot; ]; then
  ARGS=&quot;$ARG&quot;
 else
  ARGS=&quot;$ARGS $ARG&quot;
 fi 
done
ARGS=\&#039;$ARGS\&#039;
eval pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $COMMAND $ARGS
exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Tue, 14 Jan 2025 18:27:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54077#p54077</guid>
		</item>
		<item>
			<title><![CDATA[Re: gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=51793#p51793</link>
			<description><![CDATA[<p>there are 2 alternatives that ARE in debian and devuan without messing with outdated packages.</p><p>one is to use an askpass frontend for sudo, sudo with the -A flag will launch a helper program to get the user password, i&#039;ve seen even rofi used for that purpose (mind you the author recomends to NOT use rofi for sudo askpass) but a good package for that is ssh-askpass-gnome (gtk frontend), then simply put this line on your .profile <span class="bbc">export SUDO_ASKPASS=&quot;/usr/bin/ssh-askpass&quot;</span></p><p>two is to use pkexec with some polkit authentication agent, most desktop environments have their own polkit agent autostarted but if your&#039;s doesn&#039;t or you use a window manager then the package policykit-1-gnome provides a gtk polkit auth agent, the autostart desktop file specifies it as gnome only iirc, but you can add your own autostart entry in ~/.config/autostart or simply run <span class="bbc">/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1</span> somewhere in your .xsession.</p>]]></description>
			<author><![CDATA[dummy@example.com (EDX-0)]]></author>
			<pubDate>Thu, 22 Aug 2024 03:37:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=51793#p51793</guid>
		</item>
		<item>
			<title><![CDATA[Re: gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=51769#p51769</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I would like to use it in scripts and not think about them.</p></div></blockquote></div><p>Using unmaintained binaries from removed packages in scripts is the antithesis of &quot;just forget about them&quot;. Sooner or later gksu will break (especially being GUI bloat linked against GTK), if you want reliable scripts use a supported method like pkexec.</p><p>If you must use gksu, at least port it properly (i.e. rebuild it against current libraries) rather than pulling in binary packages from an old release.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Wed, 21 Aug 2024 07:01:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=51769#p51769</guid>
		</item>
		<item>
			<title><![CDATA[Re: gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=51764#p51764</link>
			<description><![CDATA[<p><a href="https://pkginfo.devuan.org/gksu" rel="nofollow">https://pkginfo.devuan.org/gksu</a></p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 20 Aug 2024 23:47:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=51764#p51764</guid>
		</item>
		<item>
			<title><![CDATA[gksu is depreciated in Daedalus - can I still use it as .deb package]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=51763#p51763</link>
			<description><![CDATA[<p>gksu is depreciated in Daedalus.&#160; So while I was searching for an alternative, someone mentioned that I can still use it as .deb package.&#160; &#160;</p><p><a href="https://itsfoss.com/gksu-replacement-ubuntu/" rel="nofollow">https://itsfoss.com/gksu-replacement-ubuntu/</a>&#160; &#160;&lt;---look at the comment section.&#160; </p><div class="quotebox"><blockquote><div><p>LeDechaine<br />1 year ago</p><p>You do NOT need to replace it. You just need to download it again. Debian: <a href="http://ftp.us.debian.org/debian/pool/main/g/gksu/gksu_2.0.2-9+b1_amd64.deb" rel="nofollow">http://ftp.us.debian.org/debian/pool/ma … _amd64.deb</a> <a href="http://ftp.us.debian.org/debian/pool/main/libg/libgksu/libgksu2-0_2.0.13~pre1-9+b1_amd64.deb" rel="nofollow">http://ftp.us.debian.org/debian/pool/ma … _amd64.deb</a> <a href="http://ftp.us.debian.org/debian/pool/main/libg/libgtop2/libgtop-2.0-10_2.34.2-1_amd64.deb" rel="nofollow">http://ftp.us.debian.org/debian/pool/ma … _amd64.deb</a> If it ain&#039;t broke, don&#039;t fix it. pkexec is a piece of trash that did not work half the time and did not do what I wanted it to do the other half of the time. Just download this and get back gksu. And watch closely apt or &quot;apt hold&quot; gksu to be sure to not lose it (it&#039;s what we should have been warned to do before this change happened, actually).</p></div></blockquote></div><p>What would be the Devuan equivalent of&#160; <a href="http://ftp.us.debian.org/debian/pool/main/libg/libgksu/libgksu2-0_2.0.13~pre1-9+b1_amd64.deb" rel="nofollow">http://ftp.us.debian.org/debian/pool/ma … _amd64.deb</a>&#160; ?&#160; &#160;Where can I find it?&#160; </p><p>I haven&#039;t found satisfactory alternative yet.&#160; I would like to use it in scripts and not think about them. </p><p>Any help and suggestions would be appreciated.</p>]]></description>
			<author><![CDATA[dummy@example.com (VH)]]></author>
			<pubDate>Tue, 20 Aug 2024 23:05:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=51763#p51763</guid>
		</item>
	</channel>
</rss>
