You are not logged in.

#1 2012-06-02 08:23:40

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

zenity error

hi to everybody,
i make a little script but at last command which should only show a reminder, fail

the command is:

HEIGHT=128
WIDTH=128
TEXT="Ora si aprirà l'editor di testo in cui potrai modificare il tema usato da OBLOGOUT.\nSe desideri usare le icone appena creata, modifica il file come segue:\n\n\nbuttontheme = gnome-colors-$HEIGHT-$WIDTH"
zenity --text="$TEXT" --info

i get this error:

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

everything work except the execution of zenity....
i don't understand what it's wrong. any ideas ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2012-06-02 09:26:27

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: zenity error

You probably have to use single quotes around your text variable.

Offline

#3 2012-06-02 11:49:47

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: zenity error

Works here (with bash 4.2.029-1 and zenity 3.4.0-1)…

Offline

#4 2012-06-02 15:05:29

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

with single quotas (`) i get:

./oblogout-gnome-colors-resolution.sh: command substitution: line 51: unexpected EOF while looking for matching `''
./oblogout-gnome-colors-resolution.sh: command substitution: line 52: syntax error: unexpected end of file

+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2012-06-02 17:14:46

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: zenity error

Works here and the quotes are not the problem.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2012-06-02 20:20:49

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

what is my problem ? i'm on openbox.... what can i change to do some tests ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#7 2012-06-02 20:47:45

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: zenity error

Are you sure that the error is with the zenity call?

Offline

#8 2012-06-02 20:49:35

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

i do.
executing the script with zenity command i get that error
executing the script without the zenity command i don't get any error....


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#9 2012-06-03 05:58:42

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: zenity error

works fine here as well..

try doing
zenity --info --text="$TEXT"

also, try with other options like --warning or --notification

Offline

#10 2012-06-03 12:00:13

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

executing the command itself everything work.....
but launch it in the entire script give me the error....

this is the script:   http://pastebin.com/ZpEKWH62


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#11 2012-06-03 14:24:40

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: zenity error

use #!/bin/bash -x and then run it. might help finding out the problem.

Last edited by debdj (2012-06-03 14:25:00)

Offline

#12 2012-06-03 15:15:19

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

same error and output is:

http://pastebin.com/nRbBs9zQ

i don't see any problem .... you ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#13 2012-06-03 19:36:50

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: zenity error

+ zenity --info '--text=Ora si aprir l'\''editor di testo in cui potrai modificare il tema usato da OBLOGOUT.\nSe desideri usare le icone appena creata, modifica il file come segue:\n\n\nbuttontheme = gnome-colors-128-128'

i guess the problem is with the text quoting. try removing all apostrophes/quotes in TEXT except the first and last double quotes.

Offline

#14 2012-06-04 19:20:43

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

thanks debdj, you go close to the solution but:
in TEXT there is this character 'à' which evidently cause the issue because removing that everything work......
so the problem is the 'à' character and not the apostrophe '

now why 'à' character give me the error ?
and
how can i fix it ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#15 2012-06-04 19:43:29

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: zenity error

Is your locale UTF-8 ?

Offline

#16 2012-06-04 19:48:50

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: zenity error

sure


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB