maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   strange different themes for same user in same application (https://talk.maemo.org/showthread.php?t=89909)

impeham 2013-04-25 17:48

strange different themes for same user in same application
 
2 Attachment(s)
I have a small utility i am executing - once by a queen beecon widget, and once from xterm. for both executions, i'm using the same command with sudo - both are for the "root" user.

nevertheless, the UI seems and behaves differently - it's like 2 different themes (see attached pics).

Why is this happening? how can i control which "theme" to be used?

sixwheeledbeast 2013-04-25 17:55

Re: strange different themes for same user in same application
 
What is your "small utility" made with?
It looks like one is running as root and one isn't.
Why do you need root to run those commands anyway?

impeham 2013-04-25 18:45

Re: strange different themes for same user in same application
 
Quote:

Originally Posted by sixwheeledbeast (Post 1338892)
What is your "small utility" made with?
It looks like one is running as root and one isn't.
Why do you need root to run those commands anyway?

It doesn't matter if i use root or user - i'm getting the same behavior which is different UI for the same user - this is what i do:

i'm executing the following command from a queen beecon widget:
bash /home/user/smart/scripts/Launchers/CarModeSelection
it runs as "user" - i verified that by adding this to the end of the "CarModeSelection" script:
id -un>/res.txt
when i execute the following from x-term:
su user -c "bash /home/user/smart/scripts/Launchers/CarModeSelection"

the output being written to the file is the same - "user", but the UI looks different (see photos) from the one displayed when executed from the widget.

the UI is of a utility i wrote in C# using GTK# which is being executed from the "CarModeSelection" script.

michaaa62 2013-04-25 20:20

Re: strange different themes for same user in same application
 
And do you really use bash as your X-Terminal shell?
The default X-Terminal shell from busybox is ash.

impeham 2013-04-25 20:30

Re: strange different themes for same user in same application
 
Quote:

Originally Posted by michaaa62 (Post 1338956)
And do you really use bash as your X-Terminal shell?
The default X-Terminal shell from busybox is ash.

ash is no good - it does not support arrays operations in shell scripts. when using it i get "unexpected redirection" for this command for example:

IFS='_' read -a array <<< "$settings"

reinob 2013-04-26 07:15

Re: strange different themes for same user in same application
 
Quote:

Originally Posted by impeham (Post 1338908)
It doesn't matter if i use root or user - i'm getting the same behavior which is different UI for the same user - this is what i do:

i'm executing the following command from a queen beecon widget:
bash /home/user/smart/scripts/Launchers/CarModeSelection
it runs as "user" - i verified that by adding this to the end of the "CarModeSelection" script:
id -un>/res.txt
when i execute the following from x-term:
su user -c "bash /home/user/smart/scripts/Launchers/CarModeSelection"

Try running from x-term:

Code:

$ run-standalone.sh /home/user/smart/scripts/Launchers/CarModeSelection
It should produce the "correct" output (you didn't say which of the two photos is the right one).

electroaudio 2013-04-26 08:27

Re: strange different themes for same user in same application
 
Arent you inheriting the users theme when you run it under queen beecon and the roottheme when you run it in a shell.

impeham 2013-04-27 13:25

Re: strange different themes for same user in same application
 
Quote:

Originally Posted by reinob (Post 1339076)
Try running from x-term:

Code:

$ run-standalone.sh /home/user/smart/scripts/Launchers/CarModeSelection
It should produce the "correct" output (you didn't say which of the two photos is the right one).

thanks man - seems environmental settings in "run-standalone.sh" solves the issue.


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

vBulletin® Version 3.8.8