In the process of getting my acpi script just right I'm trying to use DCOP to turn on/off the kdesktop screensaver setting. Working with DCOP I've discoverd that each user seems to have their own DCOP server. Running dcop from a regular console give a diffrent list of DCOP enabled processes than a root console.
I am assuming that the acpi scripts are run as 'system' (or what ever the Linux equivelent is) and therefore any DCOP related calls are looking at the 'systems' DCOP server not the current user.
So, can I force a script to run as another user? that is have the acpi script which is being run as 'system' call another script as the current user?
Thanks,
...confused and tired......... Jeff_Birt
On Sat, Apr 30, 2005 at 11:54:23PM -0500, Birt, Jeffrey wrote:
I am assuming that the acpi scripts are run as 'system' (or what ever the Linux equivelent is) and therefore any DCOP related calls are looking at the 'systems' DCOP server not the current user.
I believe they're executed as root.
So, can I force a script to run as another user? that is have the acpi script which is being run as 'system' call another script as the current user?
Yes -- use 'su -c' to do this.