maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SOLVED] Resolving BlessN900 Crashes at Start (https://talk.maemo.org/showthread.php?t=79445)

AWasisto 2011-10-28 14:49

[SOLVED] Resolving BlessN900 Crashes at Start
 
I have BlessN900 0.49-4 installed on my N900. It always failed to start if I start it from its shortcut. I tried to open "/usr/share/applications/hildon/blessn900.desktop" and start BlessN900 from XTerminal.

Here is my command using normal user.
Code:

/opt/blessn900/blessn900
Here is the output.
Code:

Could not parse application stylesheet
Segmentation fault

(BlessN900 can't start)

I tried to gain root access.
Code:

sudo gainroot
/opt/blessn900/blessn900

Here is the output.
Code:

Maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme.
Could not parse application stylesheet
QDBusInterface  com.almalence.blessn900.stdcam_replacer  is NOT valid
Segmentation fault

(Still can't start)

I didn't give up, I tried to be the root user.
Code:

root
/opt/blessn900/blessn900

Here is the output.
Code:

Could not parse application stylesheet
CameraWidget::InitializePipeline(): Start Initialize
Start StandBy

(IT WORKS! BlessN900 STARTS!) :)


Then my question is how to modify "/usr/share/applications/hildon/blessn900.desktop" to execute
Code:

root
/opt/blessn900/blessn900

If I modify the "Exec" line to
Code:

Exec=osso-xterm "sudo /opt/blessn900/blessn900"
it still can't start, cause it same as
Code:

sudo gainroot
/opt/blessn900/blessn900

I should modify the shortcut to run using root user, not normal user with root access.

LightRain 2011-10-28 16:41

Re: Resolving BlessN900 Crashes at Start
 
Try this in terminal as normal user:

sh -c 'echo "sleep 1; /opt/blessn900/blessn900" | root'

AWasisto 2011-10-29 11:28

Re: Resolving BlessN900 Crashes at Start
 
It works! Now my BlessN900 works from its shortcut. Thank you! :)


All times are GMT. The time now is 05:08.

vBulletin® Version 3.8.8