LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-19-2009, 07:58 AM   #1
Nora
LQ Newbie
 
Registered: Apr 2009
Location: New York
Distribution: Ubuntu 8.10
Posts: 13

Rep: Reputation: 0
Shell script- what have I done?


Hello-
I have a software with a known bug which has a fix in the FAQ.
The fix says to write the following shell script and the bug is fixed.
I entered the following (as shown in FAQ) into my terminal and viola bug is gone.

#!/bin/sh
export XLIB_SKIP_ARGB_VISUALS=1
/usr/bin/eagle

But what exactly did I do?
I am not clueless about programming but I am clueless about this....would love to hear detailed answers and perhaps links to where I can learn this better.
Thank you,
Nora
 
Old 04-19-2009, 08:23 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
"export XLIB_SKIP_ARGB_VISUALS=1" sets a shell variable before launching the program. A shell variable is a kind of environment setting. I'm not sure what this one is exactly, but I assume that when your program runs, it checks the variable in order to configure itself correctly.

The variable will only exist for as long as the process runs, and will be erased when the process terminates. There are ways to make shell variables permanent instead of using a launcher script like this, but since this one is only used by that one program, this way should suffice.

Edit: some google hits show that setting XLIB_SKIP_ARGB_VISUALS can help with a variety of programs, such as flashplayer, having trouble when compositing is enabled. Since it says "XLIB", it must be related to xorg.

Last edited by David the H.; 04-19-2009 at 08:29 AM.
 
Old 04-19-2009, 05:44 PM   #3
maresmasb
Member
 
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
By adding the line
export XLIB_SKIP_ARGB_VISUALS=1
directly to your .bashrc file, you would have the parameter always set when you log into your account or open a shell console. Then you could run your eagle application right away.

Last edited by Tinkster; 10-30-2010 at 04:17 PM.
 
  


Reply


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
How to ssh from a shell script ? For ppl who can write shell scripts. thefountainhead100 Programming 14 10-22-2008 07:24 AM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 01:21 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 03:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration