Update Chinese (Taiwan) translation
[cheese.git] / help / C / closed.page.stub
blob51268575cb0f6864a76ce9bbc34c70b11b31b053
1 <page xmlns="http://projectmallard.org/1.0/"
2       type="topic" style="task"
3       id="closed">
4   <info>
5     <revision version="3.0" date="2011-08-24" status="incomplete"/>
6     <link type="guide" xref="index#problems"/>
7     <credit type="author copyright">
8       <name>Julita Inca</name>
9       <email>yrazes@gmail.com</email>
10       <years>2011</years>
11     </credit>
13     <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
15     <desc>The application closes itself after a while sometimes.</desc>
16   </info>
18 <title>Why does Cheese close itself when I don't want it to?</title>
20 <comment>
21  <cite>Phil Bull</cite>
22  <p>These instructions are potentially dangerous. They ask a user to become root!</p>
23 </comment>
25 <p>Terminal is the best debug tool; so, run <app>Cheese</app> in terminal and check if you got this output:</p>
27 <p><code>$ cheese</code></p>
28 <p><code>progname=cheese; RGBA=on
29 The program 'cheese' received an X Window System error.
30 This probably reflects a bug in the program.
31 The error was 'BadMatch (invalid parameter attributes)'.
32  (Details: serial 77 error_code 8 request_code 132 minor_code 19)
33  (Note to programmers: normally, X errors are reported asynchronously;
34  that is, you will receive the error a while after causing it.
35  To debug your program, run it with the --sync command line
36  option to change this behavior. You can then get a meaningful
37  backtrace from your debugger if you break on the gdk_x_error() function.)
39 </code></p>
40 <note style="important"><p>Before following the instructions to get a solution, you have to ask an expert of administration of Linux, becuase doing some changes as a superuser can cause some other changes in the system:</p></note>
42 <steps>
43 <item>
44 <p>To edit <gui>gtkrgba.sh</gui> as a root, open your terminal and type:</p>
45 <code>sudo gedit /etc/profile.d/gtkrgba.sh</code></item>
46 <item><p>You will see a list of applications that use rgba.</p>
47 <p>If you don't see <gui>Cheese</gui> in the list, append <gui>":cheese".</gui>
48 Be careful, it is <gui>“:”</gui> before <gui>"cheese"</gui>.  
49 (See the last word in the last line):</p>
50 <p><code>export GTK_MODULES=rgba
51 export GTK_RGBA_APPS=allbut:firefox:firefox-3.5:gksudo:ooffice:soffice:inksca\
52 pe:gksu:gtk-recordMyDesktop:kompozer-bin:gpaint:lernid:totem:truecrypt:thunde\
53 rbird-bin:thunderbird:checkgmail:gloobus-preview:exe:firefox-bin:swiftfox-bin\
54 :gnome-mplayer:gnome-screensaver:google-chrome:chromium-browser:prism-bin:gno\
55 me-mplayer:xsane:metacity:mutter:Banshee:cheese </code></p></item>
56 <item><p>Save it and run <gui>Cheese</gui> by terminal. </p></item>
57 </steps>
58 <p>Source of the solution: <link href="http://www.ubuntu-es.org/node/129987">Ubuntu-es</link>, <link href="http://zaybort.linuxerz.org/2011/02/problemas-con-el-cheese/">Zaybort blog</link> and <link href="http://ubuntuforums.org/showthread.php?t=1754098">Ubuntu forums</link>. If you don't have the rgba package, click <link href= "https://wiki.ubuntu.com/DesktopTeam/RgbaGtkWithPPA">here</link>.</p>
59 </page>