You are not logged in.
Pages: 1
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
You probably have to use single quotes around your text variable.
Offline
Works here (with bash 4.2.029-1 and zenity 3.4.0-1)…
Offline
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
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
Are you sure that the error is with the zenity call?
Offline
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
works fine here as well..
try doing
zenity --info --text="$TEXT"
also, try with other options like --warning or --notification
Offline
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
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
+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
+ 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
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
Is your locale UTF-8 ?
Offline
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
Pages: 1