LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 07:23 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
"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 07:29 AM.
 
Old 04-19-2009, 04: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 03:17 PM.
 
  


Reply



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 06:24 AM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 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
Open Source Consulting | Domain Registration