=?utf-8?q?Bug=20507683=20=E2=80=93=20Store=20application=20UI=20state
[straw.git] / README
blob00fb97c9198062797336b318aea925c623a636fe
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?
16 === Introduction ===
18 Straw is a desktop news aggregator for the GNOME environment. Its aim is to
19 be a faster, easier and more accessible way to read news and blogs than the
20 traditional browser.
23 === Minimum Requirements ===
25 1. Python 2.4
26 2. Berkeley DB and their python bindings (pybsddb)
27 3. PyGTK 2.8+ (incl. extras which contains the gtkhtml2 module)
28 4. GConf
30 === Installation ===
32 1. Make sure you have the required packages to run Straw
34 [myshell@test.com]$ cd straw
35 [myshell@test.com:~/straw]$ python setup.py install_modules_check
37 2. Build the necessary files to run Straw
39 [myshell@test.com:~/straw]$ python setup.py build
41 3. Install
43 [myshell@test.com:~/straw]$ python setup.py install
45 ... Or if you want to install straw in /usr/local..
47 [myshell@test.com:~/straw]$ python setup.py install --prefix=/usr/local
51 === Notes on Installation ===
53 Straw installs files into three locations: 
55 1. The straw executable into a directory that should be in your $PATH, like
56    '/usr/bin/' or '/usr/local/bin'.
58 2. A library directory to a location that should be in python's search path,
59     like '/usr/lib/python2.X/site-packages' or '/usr/local/lib/python2.X/site-packages'.
61 3. And a data directory into a location that should be an architecture-neutral
62     directory like it '/usr/share/' or '/usr/local/share'
64 If the library directory[2] isn't in your search path, or if you for some
65 reason installed it elsewhere, you should point the STRAW_LIB
66 environment variable at the directory under which the straw library
67 directory was created. 
71 === Notes on Translation ===
73 (1) Updating the POT file
75 [myshell@test.com:~/straw]$ python setup.py translate --pot
78 (2) Merging LANGCODE.po with straw.pot
80 [myshell@test.com:~/straw]$ python setup.py translate --dist LANGCODE
83 (3) Merging translation with desktop file
85 [myshell@test.com:~/straw]$ python setup.py build_desktop
87 'python setup.py --help-commands' for more info.
90 === Database Corruption: How to recover data ===
92 When you see following error ...
94 "Recovery Error: See README for details on how to recover data."
96 ... run ...
98 [myshell@test.com:~/straw]$ db_recover -h $HOME/.straw -c -v
99 [myshell@test.com:~/straw]$ db_checkpoint -1 -v
101 ... after which you can now restart straw and everything should be fine. 
103 If it still errors, read the last paragraph of the next section (... conversion problems)
106 === Database conversion problems ( for version 0.21.x and below ONLY ) ===
108 The database format changed between Straw versions 0.21 and
109 0.22. Straw will automatically convert your database, but people have
110 experienced problems which we have been unable to trace.
112 If the conversion fails, you will be shown a dialog reporting the
113 problem. The exception will be saved to a file, the dialog will tell
114 you the name. You should see what's the problem; if it contains an
115 error telling you to run recover, you should try running db_recover on
116 the $HOME/.straw directory, like this:
118 $ db_recover -h $HOME/.straw -c -v
119 $ db_checkpoint -1 -v
121 However, this does not always help. If all else fails, you should
122 rescue your $HOME/.straw/config file and put it in a new, empty
123 $HOME/.straw directory. You will lose all the articles and images, but
124 your subscriptions will be safe.
126 We apologize for the inconvenience.
128 === Environment variables ===
130 While most of Straw's configuration is stored in gconf and its own
131 configuration file, there are also some more developer-oriented
132 environment variables that modify Straw's behaviour.
134 STRAW_RELOAD_CSS: If defined, reload CSS every time an article is
135                   displayed.
137 STRAW_IN_SOURCE_DIR: Tell Straw it's running in the source directory,
138                      so it knows where to look for dependencies.
140 === Help? ===
142 1. Visit http://live.gnome.org/Straw for mailing lists and reporting defects.
143 2. We have a channel in irc.freenode.net called #straw.
144 3. For more installation commands, run:
146 [myshell@test.com:~/straw]$ python setup.py --help-commands
149 - Straw Maintainers