LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-19-2010, 02:09 PM   #1
simon place
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
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
 
Old 08-19-2010, 05:19 PM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,210

Rep: Reputation: 238Reputation: 238Reputation: 238
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.
 
Old 08-19-2010, 06:21 PM   #3
simon place
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Last edited by simon place; 08-19-2010 at 06:27 PM.
 
Old 08-20-2010, 09:15 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,524
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
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.

Last edited by catkin; 08-20-2010 at 09:15 AM. Reason: speeling
 
Old 08-20-2010, 05:22 PM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,210

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by catkin View Post
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
 
Old 08-21-2010, 12:50 PM   #6
simon place
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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!!
 
Old 08-31-2010, 07:28 AM   #7
ananas
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by simon place View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: More fun with Zenity: shell script/GUI interactivity LXer Syndicated Linux News 0 02-18-2009 07:40 PM
LXer: Saving my sanity with Zenity : shell script interaction via the GUI LXer Syndicated Linux News 0 01-30-2009 06:00 PM
OpenSUSE 10.3 menu panel under Gnome njbrain Suse/Novell 5 02-10-2008 07:20 PM
Gnome menu panel element Linux - Software 0 09-05-2003 05:31 AM
Will GNome 2 allow you to customize the 'menu' panel? Duh Linux - General 1 12-13-2001 03:10 AM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration