I am very interested in how to do that too.... The program I am writing needs to modify system files and I hope some one will answer your question...
On Fri, Aug 28, 2009 at 11:38 PM, Brian Vidal <[email protected]> wrote: > but how could I do that?? > > i've read that gksu will have a D-bus interface (or something) in Vala. > > But, if I want to develop something that needs to modify system settings, > how can i do that now. > > e.g.: modifying the sources list > > or copy files to /usr/bin directory. > > > I want to avoid users to have to start the app from a command line and type > sudo appname. > I want, when the app is started, give the user the choice to desist from > the > changes, and exit. Otherwise, ask the password and act. > > 2009/8/28 David Keijser <[email protected]> > > > 2009/8/28 Brian Vidal <[email protected]>: > > > I really need to execute commands trough gksu > > > > > > I'm developing a GTK based app, so i can't use spawn... sudo. > > > Maybe could there be a way to ask for password and pass to sudo?? > > > > > > Any ideas? > > > -- > > > Brian Vidal > > > > > > _______________________________________________ > > > Vala-list mailing list > > > [email protected] > > > http://mail.gnome.org/mailman/listinfo/vala-list > > > > > > > > > > hmm, you mean gksu does not suite you for some reason? > > it's a GObject library so getting bindings should be easy. > > > > > > -- > Brian Vidal > > _______________________________________________ > Vala-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list > >
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
