[maemo-developers] [maemo-developers] Running GUI programs as root...

From: Tomi Ollila tomi.ollila at guru.guru-group.fi
Date: Tue Feb 28 21:21:47 EET 2006
"Kalle Vahlman" <kalle.vahlman at gmail.com> writes:

> On 2/28/06, Tomi Ollila <tomi.ollila at guru.guru-group.fi> wrote:[snip lots of hacky effort producing:]> # TMPDIR=/var/tmp GTK2_RC_FILES=/home/user/.osso/current-gtk-theme DISPLAY=:0.0 ./my-gui-prog

> If you run stuff from the CLI, use the run-standalone.sh
> script. It'll setup the proper environment for it including dbus addresses
> and soon. 

The problem occurred when launching script from maemo gui that
does `sudo /path/to/guiprog'. Now I added putenv("TMPDIR=/var/tmp") 
to my main() function and it works.
I don't know how long it will work, but that doesn't matter just now.

But, I'll have to remember that run-standalone.sh when testing...

> --Kalle Vahlman, zuh at iki.fiPowered by http://movial.fiInteresting stuff at http://syslog.movial.fi


Tomi

More information about the maemo-developers mailing list