zenity GUI script not working in menu/panel gnome
why can i run this;
"aticonfig --set-dispattrib=crt1,contrast:$(zenity --scale --min-value=0 --max-value=100 --value=85)" fine from the terminal, but as a terminal application in the menu i get nothing! (BTW this changes the contrast on ATI Radeon cards.) details; Ubuntu 10.04,(mint 9 x64) also fails as a panel app. command works fine without the zenity GUI. have tried adding "2> ~/errorlog.txt" but i dont get any error |
Well, the zenity command runs just fine when invoked from the file manager (tested it using pcmanfm on an LXDE desktop). I don't have an ati card, so I can't check the rest of the command.
|
thanks,
>> zenity command runs just fine when invoked from the file manager yes, i forgot to mention i tried that. maybe a was a bit premature, i did't actually confirmed before that it was the zenity bit that was the problem, (since it all works fine without it), but realise now i didn't do the definitive test, so; "zenity --scale --min-value=0 --max-value=100 --value=85" which also works fine from the terminal but nothing from the menu. also the most cut down zenity i can think of; "zenity --info" again nothing in a menu item. so its 100%, any zenity in a menu and no joy! should also mention, i don't really want to put this in a separate file and then call that, i assume that would work. |
May not be much help for a zenity/Gnome/ubuntu problem but the eqivalent yad/Xfce/Slackware does work when run from an Xfce panel item with the command set to yad --text-info
yad is not widely used but is an evolution of zenity, adding significant capability IMHO. |
Quote:
|
Hi
i needed to compile yad for ubuntu, but unfortunately it behaves the same way regarding what i was trying, have given up for now. apparently one big benefit of 'yad' is less dependencies, which does seem like a very good thing, particularly for something like this, for compiling i needed intltool and all the gtk dev packages. did nearly have a BIG problem, since the default value parameter name changed from 'value' in zenity to 'scale-value' in yad ( so now it is dependent on widget type) it meant that the command i was using would use the default value of zero, and so set my contrast, persistently, to zero!! |
Quote:
|
All times are GMT -5. The time now is 03:31 AM. |