maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   problem between normal user and root look&field in n900 (https://talk.maemo.org/showthread.php?t=44018)

RuiMiguel 2010-02-10 15:19

problem between normal user and root look&field in n900
 
Hi!
I've a problem with look&feel in N900 when I run a QT app. When I'm developing it, the aspect of buttons,list,images,etc are different than when I install the deb package in the N900 and run it. Moreover, if I run the app like user is different than if I run it like root (with sudo gainroot before).
How can I fix it?
Thanks (and sorry for my english :P )

qwerty12 2010-02-10 15:48

Re: problem between normal user and root look&field in n900
 
Quote:

Originally Posted by RuiMiguel (Post 519550)
Hi!
I've a problem with look&feel in N900 when I run a QT app. When I'm developing it, the aspect of buttons,list,images,etc are different than when I install the deb package in the N900 and run it. Moreover, if I run the app like user is different than if I run it like root (with sudo gainroot before).
How can I fix it?
Thanks (and sorry for my english :P )

The easy answer: Don't run it as root. =)

The nicer answer: When running it as root: run-standalone.sh <program>

RuiMiguel 2010-02-11 08:57

Re: problem between normal user and root look&field in n900
 
ok thanks, but the problem is that I want the "root aspect". My workmate had developed the app with QT in windows, and the look & feel by default was the "root aspect". When we run it in N900 the l&f is "user aspect" and all the buttons, list, etc are horrible compared to the other one.
I want to install de deb package in N900 to run the app in "root aspect" (without "chmod +s myapp" or something like this), or instead if there is another way to develop it with "user aspect".
(Sorry if my first explanation was wrong :P)
Thanks anyway!

Andre Klapper 2010-02-11 11:38

Re: problem between normal user and root look&field in n900
 
What is "root aspect" exactly please? Note that there is nothing like "look and feel root aspect".

pycage 2010-02-11 14:37

Re: problem between normal user and root look&field in n900
 
I think "root aspect" here means running with the Qt default theme rather than with the hildon theme.
But for just getting a certain look&feel no app should EVER run as root. It can be a security hole.

qwerty12 2010-02-11 14:40

Re: problem between normal user and root look&field in n900
 
I did "GTK2_RC_FILES= <program>" as user to get the same look and all I can think is: Why the **** would you want that? Some of it looks unreadable and the whole look, overall, stupid.

RuiMiguel 2010-02-12 08:14

Re: problem between normal user and root look&field in n900
 
that's right pycage. The default QT theme that we see developing our app is not the same that when we run it on N900 (what I called "user aspect"). But if I run it with root privileges, then the theme is the same as QT one (that's the "root aspect"). I don't want to run it as root, as I'd said of course, but the look&feel in QT is far better.
Thanks!


All times are GMT. The time now is 12:06.

vBulletin® Version 3.8.8