LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-26-2011, 09:00 PM   #1
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Rep: Reputation: Disabled
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
 
Old 10-26-2011, 09:43 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
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
 
Old 10-26-2011, 09:48 PM   #3
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
My version of GTK+ is 2.24.6

is there a certain version i should downgrade to?
 
Old 10-26-2011, 09:55 PM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Hmmm... May be the theme itself you are using. Can you try switching to a different theme to see if the problem persists?
 
Old 10-26-2011, 10:17 PM   #5
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

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

Last edited by huntaz556; 10-26-2011 at 10:33 PM.
 
  


Reply

Tags
bash, gui, zenity


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
is there a way to tell if a C program is running without a terminal? MrUmunhum Linux - General 4 05-11-2010 02:21 PM
Keep getting errors when running cron job that works in normal terminal. Techno Guy Linux - Newbie 6 05-31-2009 07:48 PM
Running program from terminal with & does nothing, program stops DittoAlex Linux - General 1 10-05-2007 02:35 AM
Running a Program in a new Virtual Terminal Johnsernickle Linux - Software 2 07-09-2004 12:50 PM
Running program when terminal closed? mikeshn Linux - General 9 11-23-2002 09:00 PM


All times are GMT -5. The time now is 06:20 PM.

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