Is Gparted not available via a VNC session?

Ralf Mardorf kde.lists at yahoo.com
Mon Dec 27 20:36:03 UTC 2021


On Mon, 27 Dec 2021 21:33:05 +0100, Ralf Mardorf wrote:
>On Mon, 27 Dec 2021 21:18:37 +0100, Ralf Mardorf wrote:
>>On Mon, 27 Dec 2021 20:22:42 +0100, Bo Berglund wrote:  
>>>Exec=/usr/bin/xhost +local: ; /usr/sbin/gparted %f    
>>
>>I don't know if "xhost +" and similar do solve the problem in your
>>special case. However, at least your desktop file can execute a
>>script.
>>
>>The Exec line could be "Exec=/usr/local/bin/my_script.sh %f" and
>>my_script.sh could be something like
>>
>>  #!/bin/dash
>>  xhost +SI:localuser:root
>>  gksudo gparted "$@"

PPS:

Replace

>>  exit

by
    exit $?

to get the exit status of "gksudo gparted"





More information about the ubuntu-users mailing list