Notices


Reply
Thread Tools
Posts: 22 | Thanked: 2 times | Joined on Aug 2008
#1
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=unixath=/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's Avatar
Posts: 900 | Thanked: 273 times | Joined on Aug 2008 @ Fresno CA USA
#2
I'm curious why you'd want to run an application like this as root?
__________________
George Fragos
Internet Coach & Writer
Maemo Mapper HowTo
Personal Blog -- 3 Joe's Blog


N810 -- 5.2010.33-1
 

The Following 2 Users Say Thank You to fragos For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
Originally Posted by riderman View Post
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=unixath=/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"
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 22 | Thanked: 2 times | Joined on Aug 2008
#4
Great! It works, Thanks a lot!

I want to start Maemo-Mapper out of another Script, that has to be run as root...
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#5
Originally Posted by riderman View Post
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
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:10.