Reply
Thread Tools
Posts: 669 | Thanked: 433 times | Joined on May 2010
#1
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?
Attached Images
  
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#2
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?
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 669 | Thanked: 433 times | Joined on May 2010
#3
Originally Posted by sixwheeledbeast View Post
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.

Last edited by impeham; 2013-04-25 at 19:30.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
And do you really use bash as your X-Terminal shell?
The default X-Terminal shell from busybox is ash.
 
Posts: 669 | Thanked: 433 times | Joined on May 2010
#5
Originally Posted by michaaa62 View Post
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"
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
Originally Posted by impeham View Post
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).
 

The Following User Says Thank You to reinob For This Useful Post:
electroaudio's Avatar
Posts: 381 | Thanked: 336 times | Joined on Jan 2011 @ Stockholm, Sweden
#7
Arent you inheriting the users theme when you run it under queen beecon and the roottheme when you run it in a shell.
__________________
Deskypplet , a desktop for N900 *RIP*
 
Posts: 669 | Thanked: 433 times | Joined on May 2010
#8
Originally Posted by reinob View Post
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.
 

The Following User Says Thank You to impeham For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:46.