General TC > Programming & Scripting - Unofficial

Xdialog scripting question - progress bar

<< < (2/3) > >>

^thehatsrule^:
exec is not exactly a "run in background command" but is for replacing the current process with another.

ACRizona:
hmmmm...  I guess I'm in deep water.  I hoped for something simple that could be added to the wbar exec command line.  

Using Opera as my BigSlowExample, It seems I need another script to SET all values in background (matching user TC's foreground) so that Opera will run.  
Opera attempts it's first-time-run processes ( like a new user ).

Thanks for your help.

gerald_clark:
Opera is an X client, and cannot run outside of a logged-in X server with proper authentication..
Any logged in X user should be able to 'opera &'.

tinypoodle:

--- Quote from: ACRizona on December 19, 2010, 11:59:08 AM ---Opera attempts it's first-time-run processes ( like a new user ).

--- End quote ---

One reason why this could happen is when no preexisting profile dir is used.

ACRizona:
Got it ! :)

script1 appears:
/usr/local/bin/opera -nomail -nolirc -personaldir /home/tc/.opera/
exit
# tinypoodle was right-on to -personaldir
# Opera documentation  ::)   no comment!

script2 appears:
script1 &       #launch Opera
xdialog progress bar... 10.. 9... 8...
exit

wbar
Changed Opera entry to read exec /user/tc/script2

Later I'll add a 'single-instance' check to allow only 1 Opera.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version