Updated Arabic Translation by Djihed Afifi.
[straw.git] / README
blob16d307c51af5e85e5e322edf4a1788eca1b91737
1 Straw
3 = Contents =
5     * Introduction
6     * Minimum Requirements
7     * Installation
8     * Notes on Installation
9     * Notes on Translation
10     * Notes on Configuring your Web Browser
11     * Database Corruption: How to recover data
12     * Database Conversion Problems ( for version 0.21.x and below ONLY )
13     * Environment variables
14     * Help?
18 === Introduction ===
20 Straw is a desktop news aggregator for the GNOME environment. Its aim is to
21 be a faster, easier and more accessible way to read news and blogs than the
22 traditional browser.
26 === Minimum Requirements ===
28 1. Python 2.3
29 2. Python ADNS - This is optional, but you get better results if you have it
30     installed. If you don't, Straw's user interface freezes on every name
31     lookup (the results are cached though, so it shouldn't be too bad.)
32 3. Berkeley DB3 or DB4 and their python bindings (pybsddb)
33 4. PyGTK and PyGNOME.
34 5. libglade
35 6. GConf
36 7. Python Distutils for installing Straw (python-dev for some distros).
38 You should already have (4), (5), and (6) if you're using GNOME as your
39 desktop environment. (5) & (6) should also come with your distribution.
40 Installing PyGTK should suggests or even install PyGNOME.
44 === Installation ===
46 1. Make sure you have the required packages to run Straw
48 [myshell@test.com]$ cd straw
49 [myshell@test.com:~/straw]$ python setup.py install_modules_check
51 2. Build the necessary files to run Straw
53 [myshell@test.com:~/straw]$ python setup.py build
55 3. Install
57 [myshell@test.com:~/straw]$ python setup.py install
59 ... Or if you want to install straw in /usr/local..
61 [myshell@test.com:~/straw]$ python setup.py install --prefix=/usr/local
65 === Notes on Installation ===
67 Straw installs files into three locations: 
69 1. The straw executable into a directory that should be in your $PATH, like
70    '/usr/bin/' or '/usr/local/bin'.
72 2. A library directory to a location that should be in python's search path,
73     like '/usr/lib/python2.2/site-packages' or '/usr/local/lib/python2.3/site-packages'.
75 3. And a data directory into a location that should be an architecture-neutral
76     directory like it '/usr/share/' or '/usr/local/share'
78 If the library directory[2] isn't in your search path, or if you for some
79 reason installed it elsewhere, you should point the STRAW_LIB
80 environment variable at the directory under which the straw library
81 directory was created. 
85 === Notes on Translation ===
87 (1) Updating the POT file
89 [myshell@test.com:~/straw]$ python setup.py translate --pot
92 (2) Merging LANGCODE.po with straw.pot
94 [myshell@test.com:~/straw]$ python setup.py translate --dist LANGCODE
97 (3) Merging translation with desktop file
99 [myshell@test.com:~/straw]$ python setup.py build_desktop
102 'python setup.py --help-commands' for more info.
106 === Notes on Configuring your Web Browser ===
108 If you click a URL, straw loads the URL in whatever browser is set in your
109 environment. This is set through the following easy steps:
111  1. Applications -> Desktop Preferences -> Advanced -> File Types & Programs
112  2. Click on Documents -> World Wide Web -> HTML page
113  3. On the left hand side, choose Edit.
114  4. Choose your browser in the "Default Action" box inside the Actions Frame.
116 ***NOTE***: This doesn't work for some. Help is very much appreciated here.
119 === Database Corruption: How to recover data ===
121 When you see following error ...
123 "Recovery Error: See README for details on how to recover data."
125 ... run ...
127 [myshell@test.com:~/straw]$ db_recover -h $HOME/.straw -c -v
128 [myshell@test.com:~/straw]$ db_checkpoint -1 -v
130 ... after which you can now restart straw and everything should be fine. 
132 If it still errors, read the last paragraph of the next section (... conversion problems)
136 === Database conversion problems ( for version 0.21.x and below ONLY ) ===
138 The database format changed between Straw versions 0.21 and
139 0.22. Straw will automatically convert your database, but people have
140 experienced problems which we have been unable to trace.
142 If the conversion fails, you will be shown a dialog reporting the
143 problem. The exception will be saved to a file, the dialog will tell
144 you the name. You should see what's the problem; if it contains an
145 error telling you to run recover, you should try running db_recover on
146 the $HOME/.straw directory, like this:
148 $ db_recover -h $HOME/.straw -c -v
149 $ db_checkpoint -1 -v
151 However, this does not always help. If all else fails, you should
152 rescue your $HOME/.straw/config file and put it in a new, empty
153 $HOME/.straw directory. You will lose all the articles and images, but
154 your subscriptions will be safe.
156 We apologize for the inconvenience.
158 === Environment variables ===
160 While most of Straw's configuration is stored in gconf and its own
161 configuration file, there are also some more developer-oriented
162 environment variables that modify Straw's behaviour.
164 STRAW_RELOAD_CSS: If defined, reload CSS every time an article is
165                   displayed.
167 STRAW_THREAD_DNS: If defined, use a separate thread with the normal
168                   name resolving instead of ADNS for name look
169                   ups. Avoids the ADNS dependency and the various
170                   problems with the library (spurious lookup failures,
171                   resolv.conf parsing problems) but causes a frozen UI
172                   in some installations.
174 STRAW_NO_ETAGS:   Don't use ETags. Causes extra network traffic, but 
175                   occasionally useful for debugging.
177 STRAW_IN_SOURCE_DIR: Tell Straw it's running in the source directory,
178                      so it knows where to look for dependencies.
180 === Help? ===
182 1. Visit http://www.nongnu.org/straw for mailing lists and reporting defects.
183 2. We have a channel in irc.gimpnet.org called #straw.
184 3. For more installation commands, run:
186 [myshell@test.com:~/straw]$ python setup.py --help-commands
189 - Straw Development Team