<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>here is the part of the man page from sudo which specifically mentions using a graphic interface for ask_pass</div><div>man sudo ...</div><div><br data-mce-bogus="1"></div><div><div> -A, --askpass</div><div>                Normally, if sudo requires a password, it will read it from the user's terminal.  If the -A (askpass) option is specified, </div><div>                a (possibly graphical) helper program is executed to read the user's password and output</div><div>                the password to the standard output.  If the SUDO_ASKPASS environment variable is set, it specifies the path to the helper program.  </div><div>                Otherwise, if sudo.conf(5) contains a line specifying the askpass program, that</div><div>                 value will be used.  For example:</div><div><br></div><div>                     # Path to askpass helper program</div><div>                     Path askpass /usr/X11R6/bin/ssh-askpass</div><div><br></div><div>                 If no askpass program is available, sudo will exit with an error.</div><div><br data-mce-bogus="1"></div><div>I am not sure why this would be wrong?</div></div><div><br></div><div><br></div><div data-marker="__SIG_PRE__">"Failure is the key to success; <br> each mistake teaches us something"  .. Morihei Ueshiba<br>Brian G</div><div><br><span id="zwchr" data-marker="__DIVIDER__">----- On Dec 31, 2021, at 11:52 PM, Brian G <brian@westwoodsvcs.com> wrote:<br></span><style></style></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><p style="margin-top:0px" dir="ltr">Sorry Bruce I use it very often with a graphical front end...</p> 
<p dir="ltr">Almost every management app uses sudo -A</p> 
<div id="mail-app-auto-default-signature">
 <p dir="ltr">--<br> Thanks<br> Brian G</p>
</div>Thursday, 30 December 2021, 09:32AM -08:00 from Bruce Steers <a href="mailto:bsteers4@gmail.com" target="_blank" rel="nofollow noopener noreferrer">bsteers4@gmail.com</a>:<br><br><blockquote id="mail-app-auto-quote" cite="16408855300000048732" style="border-left:1px solid #0878bd;margin:0px 0px 0px 10px;padding:0px 0px 0px 10px">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="js-helper js-readmsg-msg">
        
        <div>
                
                
                        <div id="style_16408855300000048732_BODY"><div class="cl_902658"><div dir="ltr"><div class="gmail_default_mr_css_attr" style="font-size:small">RunAsRoot is a "Graphical" launcher.</div><div class="gmail_default_mr_css_attr" style="font-size:small"></div><div class="gmail_default_mr_css_attr" style="font-size:small">same as using pkexec or gksudo or kdesudo</div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div><div class="gmail_default_mr_css_attr" style="font-size:small">not for using the sudo command for a terminal application.</div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div><div class="gmail_default_mr_css_attr" style="font-size:small">sudo is a terminal command not a graphical application<br></div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div><div class="gmail_default_mr_css_attr" style="font-size:small">sudo apt-get <br></div><div class="gmail_default_mr_css_attr" style="font-size:small">must be run through a terminal not a graphical launcher.</div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div><div class="gmail_default_mr_css_attr" style="font-size:small">possibly this would work...</div><div class="gmail_default_mr_css_attr" style="font-size:small">Desktop.RunAsRoot("mate-terminal --command 'sudo apt-get autoclean'")</div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div><div class="gmail_default_mr_css_attr" style="font-size:small">BruceS</div><div class="gmail_default_mr_css_attr" style="font-size:small"><br></div></div><br><div class="mail-quote-collapse"><div class="gmail_quote_mr_css_attr"><div dir="ltr" class="gmail_attr_mr_css_attr">On Thu, 30 Dec 2021 at 15:13, Gianluigi <<a href="mailto:bagonergi@gmail.com" rel="noopener noreferrer nofollow noopener noreferrer" target="_blank">bagonergi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote_mr_css_attr" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div dir="ltr">Hi Benoit and All,<br><br>one of our friend of the Italian Forum, using this code:<br><br>Desktop.RunAsRoot("sudo apt-get autoclean")<br><br>Gets this answer:<br><br>No Graphical sudo program found<br><br>What can we say to him?<br><br><div>Here the system information: (*)</div><br><div>Regards</div><div>Gianluigi<br></div><div>(*)<br></div><div>[System]<br></div><div><pre>Gambas=3.15.2<br>OperatingSystem=Linux<br>Kernel=5.10.0-10-amd64<br>Architecture=x86_64<br>Distribution=Debian<br>Desktop=MATE<br>Theme=fusion<br>Language=it_IT.UTF-8<br>Memory=3801M<br><br>[Libraries]<br>Cairo=libcairo.so.2.11600.0<br>Curl=libcurl.so.4.7.0<br>DBus=libdbus-1.so.3.19.13<br>GDK2=libgdk-x11-2.0.so.0.2400.33<br>GDK3=libgdk-3.so.0.2404.20<br>GStreamer=libgstreamer-1.0.so.0.1804.0<br>GTK+2=libgtk-x11-2.0.so.0.2400.33<br>GTK+3=libgtk-3.so.0.2404.20<br>OpenGL=libGL.so.1.7.0<br>Poppler=libpoppler.so.102.0.0<br>QT5=libQt5Core.so.5.15.2<br>SDL=libSDL-1.2.so.0.11.4<br>SQLite=libsqlite3.so.0.8.6<br><br>[Environment]<br>CLUTTER_IM_MODULE=ibus<br>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus<br>DESKTOP_SESSION=lightdm-xsession<br>DISPLAY=:0<br>GB_GUI=gb.qt5<br>GDMSESSION=lightdm-xsession<br>GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop<br>GIO_LAUNCHED_DESKTOP_FILE_PID=154545<br>GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1<br>GTK3_MODULES=xapp-gtk3-module<br>GTK_IM_MODULE=ibus<br>GTK_MODULES=gail:atk-bridge<br>GTK_OVERLAY_SCROLLING=0<br>HOME=/home/<br>LANG=it_IT.UTF-8<br>LC_ALL=it_IT.UTF-8<br>LOGNAME=<br>MATE_DESKTOP_SESSION_ID=this-is-deprecated<br>PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games<br>PWD=/home/<br>QT_ACCESSIBILITY=1<br>QT_AUTO_SCREEN_SCALE_FACTOR=0<br>QT_IM_MODULE=ibus<br>QT_LOGGING_RULES=*.debug=false<br>QT_SCALE_FACTOR=1<br>SESSION_MANAGER=local/:@/tmp/.ICE-unix/3866,unix/:/tmp/.ICE-unix/3866<br>SHELL=/bin/bash<br>SSH_AGENT_PID=4034<br>SSH_AUTH_SOCK=/run/user/1000/keyring/ssh<br>TZ=:/etc/localtime<br>USER=<br>XAUTHORITY=/home//.Xauthority<br>XDG_CURRENT_DESKTOP=MATE<br>XDG_DATA_DIRS=/usr/share/mate:/home//.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share<br>XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<br>XDG_RUNTIME_DIR=/run/user/1000<br>XDG_SEAT=seat0<br>XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0<br>XDG_SESSION_CLASS=user<br>XDG_SESSION_DESKTOP=lightdm-xsession<br>XDG_SESSION_ID=1<br>XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0<br>XDG_SESSION_TYPE=x11<br>XDG_VTNR=7<br>XMODIFIERS=@im=ibus</pre></div></div>
<br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" rel="noopener noreferrer nofollow noopener noreferrer" target="_blank">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
</blockquote></div></div>
</div></div>
                        <div><br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" target="_blank" rel="nofollow noopener noreferrer">http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
<br>
</div>
                
                
        </div>

        
</div>


</blockquote>
<br><br>----[ http://gambaswiki.org/wiki/doc/netiquette ]----<br></blockquote></div></div></body></html>