@@ -58,6 +58,33 @@ Installation:
58
58
Easy installation on any distribution supporting snap:
59
59
https://snapcraft.io/hamster-snap
60
60
61
+ ##### Flatpak
62
+
63
+ [ Flatpak] ( https://flatpak.org/ ) enables you to install Hamster in a versioned
64
+ environment and then run it inside a sandbox. It is a method independent from
65
+ your distribution-specific packaging system, ensuring that the application can
66
+ always be reproducibly built, even without hunting down all of the dependencies
67
+ yourself. Debugging is made easier as every user has the exact same environment
68
+ at runtime. Permissions are limited to what the application really needs to
69
+ function properly.
70
+
71
+ If you downloaded the file with the Hamster bundle (ending in `` .flatpak `` ), you
72
+ can directly install it with:
73
+
74
+ ``` bash
75
+ flatpak install --reinstall Hamster.flatpak
76
+ ```
77
+
78
+ If you would like to install Hamster only for your user, please pass the
79
+ `` --user `` option to the above command.
80
+
81
+ After installation, if you need to invoke Hamster from the command line,
82
+ you can do so with:
83
+
84
+ ``` bash
85
+ flatpak run org.gnome.Hamster [args...]
86
+ ```
87
+
61
88
### Install from sources
62
89
63
90
#### Dependencies
@@ -125,6 +152,20 @@ as discussed [here](https://github.com/projecthamster/hamster/pull/421#issuecomm
125
152
126
153
Now restart your panels/docks and you should be able to add Hamster!
127
154
155
+ ##### Flatpak
156
+
157
+ Alternatively, you can also build a sandboxed
158
+ [ flatpak] ( https://www.flatpak.org/ ) yourself. You might need to install the
159
+ GNOME SDK beforehand (an error will notify you about it, if needed). Execute:
160
+
161
+ ``` bash
162
+ flatpak-builder --force-clean --user --install \
163
+ build/flatpak org.gnome.Hamster.json
164
+ ```
165
+
166
+ This creates a temporary flatpack build folder in the `` build/flatpak ``
167
+ directory. Once the app is installed, the whole `` build/flatpack/ `` directory
168
+ can be removed.
128
169
129
170
#### Uninstall
130
171
@@ -135,6 +176,14 @@ sudo ./waf uninstall
135
176
Afterwards ` find /usr -iname hamster ` should only list unrelated files (if any).
136
177
Otherwise, please see the [ wiki section] ( https://github.com/projecthamster/hamster/wiki/Tips-and-Tricks#uninstall )
137
178
179
+ ##### Flatpak
180
+
181
+ To remove the installed flatpak, just run:
182
+
183
+ ``` bash
184
+ flatpak uninstall org.gnome.Hamster
185
+ ```
186
+
138
187
#### Troubleshooting
139
188
140
189
[ wiki section] ( https://github.com/projecthamster/hamster/wiki/Tips-and-Tricks#troubleshooting )
@@ -178,7 +227,31 @@ run:
178
227
python3 -m unittest tests.test_stuff.TestFactParsing
179
228
python3 -m unittest tests.test_stuff.TestFactParsing.test_plain_name
180
229
181
- #### Migrating from hamster-applet
230
+ ##### Flatpak
231
+
232
+ To run the tests inside the flatpak, use:
233
+
234
+ ``` bash
235
+ flatpak-builder --run build/flatpak org.gnome.Hamster.json \
236
+ python3 -m unittest
237
+ ```
238
+
239
+ #### Migrating
240
+
241
+ ##### Migrating data to flatpak
242
+
243
+ If you would like to retain your data from a non-flatpak installation,
244
+ you can do so by running:
245
+
246
+ ``` bash
247
+ gio copy -b \
248
+ ~ /.local/share/hamster/hamster.db \
249
+ ~ /.var/app/org.gnome.Hamster/data/hamster/
250
+ ```
251
+
252
+ After checking everything works, you can remove the original database.
253
+
254
+ ##### Migrating from hamster-applet
182
255
183
256
Previously Hamster was installed everywhere under ` hamster-applet ` . As
184
257
the applet is long gone, the paths and file names have changed to
0 commit comments