maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Start Maemo-Mapper from Terminal as Root (https://talk.maemo.org/showthread.php?t=25563)

riderman 2008-12-13 02:12

Start Maemo-Mapper from Terminal as Root
 
Hi,
again a problem with running an application as root. As user its no problem to start Maemo Mapper with the command "maemo-mapper" from the commandline.

As Root I get an error. (on N770 and on N810, too)

I could fix it with the command

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/session_bus_socket maemo-mapper

now Maemo Mapper starts, but the layout of the Menu is broken. All buttons and backgrounds are Gray, some textfields and buttons are to big.

Does someone have an idea how to fix this?

Thx,
rider

fragos 2008-12-13 02:41

Re: Start Maemo-Mapper from Terminal as Root
 
I'm curious why you'd want to run an application like this as root?

qwerty12 2008-12-13 08:54

Re: Start Maemo-Mapper from Terminal as Root
 
Quote:

Originally Posted by riderman (Post 249175)
Hi,
again a problem with running an application as root. As user its no problem to start Maemo Mapper with the command "maemo-mapper" from the commandline.

As Root I get an error. (on N770 and on N810, too)

I could fix it with the command

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/session_bus_socket maemo-mapper

now Maemo Mapper starts, but the layout of the Menu is broken. All buttons and backgrounds are Gray, some textfields and buttons are to big.

Does someone have an idea how to fix this?

Thx,
rider

I'm with fragos, but anyway...

"run-standalone.sh maemo-mapper"

riderman 2008-12-14 15:20

Re: Start Maemo-Mapper from Terminal as Root
 
Great! It works, Thanks a lot!

I want to start Maemo-Mapper out of another Script, that has to be run as root...

Jaffa 2008-12-17 13:54

Re: Start Maemo-Mapper from Terminal as Root
 
Quote:

Originally Posted by riderman (Post 249449)
Great! It works, Thanks a lot!

I want to start Maemo-Mapper out of another Script, that has to be run as root...

Then your root-running script should use su to switch to user for maemo-mapper, a la:
Code:

su -c maemo-mapper user


All times are GMT. The time now is 15:27.

vBulletin® Version 3.8.8