Is Gparted not available via a VNC session?

Ralf Mardorf kde.lists at yahoo.com
Mon Dec 27 20:33:05 UTC 2021


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 "$@"
>  exit

PS: Don't forget to make "my_script.sh" executable by running
    sudo chmod a+x my_script.sh




More information about the ubuntu-users mailing list