LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Zenity: This option is not available. Please see --help for all possible usages (https://www.linuxquestions.org/questions/linux-newbie-8/zenity-this-option-is-not-available-please-see-help-for-all-possible-usages-4175429243/)

rahulkmnair 09-27-2012 03:38 AM

Zenity: This option is not available. Please see --help for all possible usages
 
Hi

I got an error message while running the following zenity command

zenity --info --text="Testing\!"

and the error message is


This option is not available. Please see --help for all possible usages.


I got the same error message for all the zenity commands.

My OS is CentOS. How to solve the problem?

Regards
Rahul K M

SecretCode 09-27-2012 06:23 AM

What version of zenity?
Code:

zenity --version
Does
Code:

zenity --help
work (displaying help output)?

Check
Code:

which zenity
(should be /usr/bin/zenity) and trying calling /usr/bin/zenity directly - one thought is you have an alias or another copy of it somewhere else in the path.

rahulkmnair 10-02-2012 03:46 AM

Thank you SecretCode for your reply. Please note the following.

Code:

zenity --version
This option is not available. Please see --help for all possible usages.

Code:

zenity --help
Usage:
  zenity [OPTION...]

Help Options:
  -?, --help                  Show help options
  --help-all                  Show all help options
  --help-general              Show general options
  --help-calendar            Show calendar options
  --help-entry                Show text entry options
  --help-error                Show error options
  --help-info                Show info options
  --help-file-selection      Show file selection options
  --help-list                Show list options
  --help-notification        Show notification icon options
  --help-progress            Show progress options
  --help-question            Show question options
  --help-warning              Show warning options
  --help-scale                Show scale options
  --help-text-info            Show text information options
  --help-misc                Show miscellaneous options
  --help-gtk                  Show GTK+ Options

Application Options:
  --calendar                  Display calendar dialog
  --entry                    Display text entry dialog
  --error                    Display error dialog
  --info                      Display info dialog
  --file-selection            Display file selection dialog
  --list                      Display list dialog
  --notification              Display notification
  --progress                  Display progress indication dialog
  --question                  Display question dialog
  --warning                  Display warning dialog
  --scale                    Display scale dialog
  --text-info                Display text information dialog
  --display=DISPLAY          X display to use


Code:

which zenity
/usr/bin/zenity


And also tried with the following
Code:

/usr/bin/zenity --version
This option is not available. Please see --help for all possible usages.


Do you have any solution please?

Regards
Rahul

SecretCode 10-02-2012 07:45 AM

You don't have all the same options as my version (which is 3.2.0). It might be worth seeing if you can upgrade the package that supplies it. (Can't advise on that - I don't use CentOS)

Since your help lists the option, try
Code:

zenity --help-info

Maybe the special characters aren't being escaped in your shell. Try the simplest possible command, say
Code:

zenity --info --text="Testing"

rahulkmnair 10-03-2012 01:32 AM

Thank you SecretCode.

I think the problem is related to the installation (with yum) or the version of zenity (as it was an old version). I got a source code for zenity-3.6.0 and going to try source code installation. I'll update the result here.

Regards
Rahul


All times are GMT -5. The time now is 04:59 PM.