LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   zenity GUI script not working in menu/panel gnome (https://www.linuxquestions.org/questions/linux-desktop-74/zenity-gui-script-not-working-in-menu-panel-gnome-827291/)

simon place 08-19-2010 02:09 PM

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

RockDoctor 08-19-2010 05:19 PM

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.

simon place 08-19-2010 06:21 PM

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.

catkin 08-20-2010 09:15 AM

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.

RockDoctor 08-20-2010 05:22 PM

Quote:

Originally Posted by catkin (Post 4072419)
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.

Thanks for the heads up regardig yad. It's not available in the Fedora repos, but the Suse rpm installed just fine

simon place 08-21-2010 12:50 PM

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!!

ananas 08-31-2010 07:28 AM

Quote:

Originally Posted by simon place (Post 4073442)
Hi
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!!

actually, this is a bug in YAD. i fix it in release 0.4.0


All times are GMT -5. The time now is 03:31 AM.