[Gambas-user] Delete a file requiring Admin privilege

John Rose john.aaron.rose at ...626...
Sun Feb 3 16:12:52 CET 2013


I've just tried using Exec with "gksudo" and having only one 
concatenated parameter:
Exec ["gksudo", "desktop-file-install " & "--dir=" & sInstallDirectory & 
" " & sPath] To sOutput

It gave no errors but it didn't work.

I was using Shell and that worked with Shell$ applied to the directory 
and path variables above. But I thought that I'd try using Exec as the 
equivalent gksudo command to the above can be run in Terminal i.e. not 
using bash.

-- 
Regards,
John





More information about the User mailing list