[sabayon] Trying to perform privileged operations from the sessionswindow
- From: "Sayamindu Dasgupta" <sayamindu randomink org>
- To: "Hot GNOME love for admins" <sabayon-list gnome org>
- Subject: [sabayon] Trying to perform privileged operations from the sessionswindow
- Date: Wed, 27 Jun 2007 22:27:28 +0530
Hi all,
I have added an extra option, Edit->Desktop Links to the profile
editor window, which allows the administrator to configure desktop
links (both mandatory and non mandatory) for a particular profile.
However, the problem is that I am not being able to write to the
global desktop link directory since the process running the profile
editor window does not have root privileges.
I tried the seteuid() method for doing the write operations, but it
did not work and directed me to http://www.gtk.org/setuid.html
Is there any way to do privileged operations from the editor window ?
One ugly workaround would be to save the global links in some
temporary directory and when the save button is pressed (__do_save()
in sessionwindow.py), copy the links in the actual directory.
Is there any better way ?
Cheers,
Sayamindu
--
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]