I don't care if this is unsafe, because I'm only doing it as a programming exercise, but that's what I want to do:
I want to create a C program that, with the "system" command, will call dpkg and install some .deb files.
But, I want it to use something like gksu to ask for the password outside of the command line environment.
So, basically, I will double click my program and it will do for me:
- Check if the .deb files are present
- If not, use notify-send to tell the user there's a file missing
- If they are all present, call a "gksu dpkg" thing to install the packages and use notify-send to tell when the packages are installed.
How can I do it?