LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running program from terminal gives me errors (http://www.linuxquestions.org/questions/linux-newbie-8/running-program-from-terminal-gives-me-errors-910363/)

huntaz556 10-26-2011 08:00 PM

running program from terminal gives me errors
 
Hi everyone when i am running any program from my terminal that has a gui i get an error like this

Code:

(zenity:23415): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:4
the particular thing im doing is making a bash script with zenity but i get his error

Code:

(zenity:23410): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:74:17: Missing opening bracket in color definition

(zenity:23410): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:171:37: 'bg_color' is not a valid color name

(zenity:23410): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:426:4: Junk at end of value
+ zenity --info --text=Press okay and you will be able to chose if you would like to backup or restore

(zenity:23415): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:74:17: Missing opening bracket in color definition

(zenity:23415): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:171:37: 'bg_color' is not a valid color name

(zenity:23415): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:426:4: Junk at end of value
root@huntaz-ThinkPad-R61i:/home/huntaz# ./bur.sh
mkdir: cannot create directory `/mnt/usbflash/': File exists

(zenity:23419): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:74:17: Missing opening bracket in color definition

(zenity:23419): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:171:37: 'bg_color' is not a valid color name

(zenity:23419): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:426:4: Junk at end of value

(zenity:23420): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:74:17: Missing opening bracket in color definition

(zenity:23420): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:171:37: 'bg_color' is not a valid color name

(zenity:23420): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:426:4: Junk at end of value


corp769 10-26-2011 08:43 PM

Hello,

This may be a version mismatch; What version of gtk is currently installed? You may have to downgrade to a lower version, since this seems like a newer version is installed, and it is not recognizing the older format.

Cheers,

Josh

huntaz556 10-26-2011 08:48 PM

My version of GTK+ is 2.24.6

is there a certain version i should downgrade to?

corp769 10-26-2011 08:55 PM

Hmmm... May be the theme itself you are using. Can you try switching to a different theme to see if the problem persists?

huntaz556 10-26-2011 09:17 PM

Well i switched themes and im not getting the error i was using a custom theme by the way from gnome-look.org

but now my radiobox wont show up. not that it did before but its not showing up.

here is my code am i doing somthing wrong...?

Code:

#!/bin/bash

if [ $(whoami) != "root" ]; then
 zenity --error --text="Sorry ! your are not root user."
 exit 1
fi

zenity --info --text="This Script will backup a selected directory to a external drive for you."

zenity --info --text="Press okay and you will be able to chose if you would like to backup or restore"

menu(){
im="zenity --list --radiolist --width=800 --height=600 --title\"Huntaz's backup utility\""
im=$im" --column=\" \" --column \"What would you like to do?\" --column \"Description\" "

im=$im"FALSE \"Task 1\" \"Backup\" "
im=$im"FALSE \"Task 2\" \"Restore\" "
}

option(){
choice= 'echo $im | sh -'

if echo $choice | grep "Task 1" > /dev/null;
then


clear

zenity --question="This is going to format your external drive are you sure?" FORMAT

zenity --entry="Please specify the name of your external drive, Example : /dev/sdb/ " DRIVEN

zenity --entry="Please specify the directory you would like to backup Example : /home/$(whoami)/Documents/" DIR

zenity --entry="Please specify what you would like the backup to be called " BNAME

umount "$DRIVEN"
mkfs.vfat -n Backup -I "$DRIVEN"
cd /mnt/usbflash/
mount "$DRIVEN" /mnt/usbflash/
sudo tar -cf - "$DIR" | gzip -c > /mnt/usbflash/"$BNAME".tar.gz
zenity --info --text="Your backup is complete"
fi
menu
option
}

please ignore those bottom zenity questions i forgot to revise them according to what i have now lol


All times are GMT -5. The time now is 10:16 PM.