You are not logged in.

#1 2011-12-13 22:25:10

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

[AUTO-SOLVED] Run an app as privileged user

Im preparing a package for an app that uses libpcap and requires administrative rights to run properly.
Currently, the .desktop file for launching this app contains something like this:

gksudo mono /foo/bar/app.exe


But it looks like in the moment the app is going to make use of the libpcap library, the rights get lost and the app just force closes...

I don't know if this is the best procedure for doing so, but certainly, if i run from a terminal:

sudo mono /foo/bar/app.exe

I get the expected results and behaviour....

Can anyone help me?

EDIT: Looks like I found the source of the issue.
If i want to run this app from console, i first have to cd inside of the same dire the .exe is located... so, how to put this into a .desktop file?

Thanks

EDIT #2:
Path=/foo/bar

inside the .desktop file ...... this did the trick


Thanks!!!

Last edited by Xi0N (2011-12-13 23:12:53)

Offline

Board footer

Powered by FluxBB