[Gambas-user] Delete a file requiring Admin privilege
Tobias Boege
taboege at ...626...
Sun Feb 3 19:15:29 CET 2013
On Sun, 03 Feb 2013, John Rose wrote:
> Tobias,
>
> You were correct:
>
> Exec ["gksudo", Shell$("desktop-file-install " & Shell$(sPath))]
>
> did not work.
>
> I've posted this as issue #400 on
> https://code.google.com/p/gambas/issues. It'll be interesting to see
> Benoit's take on this. Unless there's a solution/workaround, it looks
> like it's best to use Shell when using gksudo.
>
> Regards,
> John
OK. In order to put an end to this haunting I installed gksudo and the
following line is verified to work:
' This file exists and its path contains spaces, apparently
sPath = User.Home &/ "dir space" &/ "desktop space.desktop"
Exec ["gksudo", "desktop-file-install", sPath]
The file _is_ copied into /usr/share/applications/.
It _must_ consequently be some issue with your system. I've tested this
under Arch Linux: gksudo is symlinked to gksu, version 2.0.2.
Regards,
Tobi
More information about the User
mailing list