File: README.md

package info (click to toggle)
revolt 0.0%2Bgit20200723.0aca6c8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 564 kB
  • sloc: python: 615; sh: 311; xml: 84; makefile: 24
file content (152 lines) | stat: -rw-r--r-- 5,040 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
![Logo](https://github.com/aperezdc/revolt/blob/master/assets/revolt-logo.png)

Revolt
======

Revolt is a small application which wraps [Element](https://element.io) to
provide better integration with desktop environments in general, and
[GNOME](http://www.gnome.org) in particular:

* Having Element as a “standalone” application with its own window,
  launcher, icon, etc. instead of it living in a browser tab.
* Persistent notifications (for desktop environments supporting them, i.e.
  GNOME). Notifications are automatically prevented when the Revolt window is
  focused.
* Status icon for desktop environment which have a tray bar applet (XFCE,
  Budgie, likely many others).

![Status icon in Budgie](https://github.com/aperezdc/revolt/blob/master/assets/revolt-statusicon-screenshot.png)
![Application Window](https://github.com/aperezdc/revolt/blob/master/assets/revolt-screenshot.png)


Installation
------------

The recommended installation method is to use [Flatpak](http://flatpak.org).
Starting with version `0.6.13` using a single command is enough (if you want to
intall in you user directory, add `--user` to the command):

```sh
flatpak install --from https://flatpak.perezdecastro.org/revolt.flatpakref
```

If your Flatpak version is older than 0.6.13, use the following commands
instead:

```sh
wget https://flatpak.perezdecastro.org/revolt.flatpakref
flatpak install --from revolt.flatpakref
rm revolt.flatpakref
```

Once installed, updates will be installed automatically when using `flatpak update`.

You can also download [the .flatpakref
file](https://flatpak.perezdecastro.org/revolt.flatpakref) and double-click on
it to have GNOME Software install the application. GNOME Software will also
notify you of updates and give you the option to install them.

### Portal Helpers

**IMPORTANT**: Many distributions *do not* install the XDG helper programs for
the sandboxed applications, which are needed for some features to work. Please
install them using your distribution's package manager:

* Debian: [xdg-desktop-portal-gtk](https://packages.debian.org/search?keywords=xdg-desktop-portal-gtk).
* Arch Linux: [xdg-desktop-portal-gtk](https://www.archlinux.org/packages/extra/x86_64/xdg-desktop-portal-gtk/).
* Fedora: [xdg-desktop-portal-gtk](https://admin.fedoraproject.org/pkgdb/package/rpms/xdg-desktop-portal-gtk/).

Some features, remarkably the desktop notifications, _will not work without the
portal helpers_.

### GNOME Runtime

Revolt uses the GNOME Flatpak runtime. Depending on the version of Flatpak
installed on your system, you may need to install it manually. You can check
whether the runtime is missing by trying to run Revolt in a terminal:

```
% flatpak run org.perezdecastro.Revolt
error: runtime/org.gnome.Platform/x86_64/3.22 not installed
%
```

If you need to install the runtime manually, you can do so by issuing the
following command:

```
flatpak [--user] remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
```

If your Flatpak version is older than 0.6.13, use the following commands
instead:

```sh
wget https://sdk.gnome.org/keys/gnome-sdk.gpg
flatpak [--user] remote-add --gpg-import=gnome-sdk.gpg gnome https://sdk.gnome.org/repo/
flatpak [--user] install gnome org.gnome.Platform 3.22
```

Manual Installation
-------------------

Install the files to their locations:

```sh
sudo ./install.sh --prefix=/usr --log-file=install.log
```

(Specifying a log file is optional, but if you plan on [upgrading](#upgrading)
later on using the `install.sh` script, it is recommended to use it.)

Install the dependencies:

```sh
sudo apt-get install python-gobject python3-gi libwebkit2gtk-4.0
```

Now you should be able to launch Revolt from the GNOME Shell.

### Upgrading

The `install.sh` script can be used to upgrade an existing installation as
well. The recommended way is to save a log of installed files, so the upgrade
process can remove stray files from the old version. In general, the preferred
way of invoking the installation script is as follows:

```sh
sudo ./install.sh --upgrade --prefix=/usr --log-file=/etc/revolt.files
```

This way a log of the installed files is recorded the first time that the
installation is done, and further upgrades will use it to remove stray files
from old versions. Also, the log file will be updated with every upgrade.


Development
-----------

Using `make run` executes Revolt in “development” mode: the needed resources
are loaded from the source directory, instead of using the system-wide
directories.


Flatpak
-------

A bundle can be created using the included [make-flatpak.sh](make-flatpak.sh)
script. The script arranges calling `flatpak-builder` to build and create a
repository into `.flatpak-repo`. You can create a bundle from the repository
using:

```sh
flatpak build-bundle .flatpak-repo/ Revolt.flatpak org.perezdecastro.Revolt
```

Once the bundle is created, you can install and run it with:

```sh
flatpak install --user --bundle Revolt.flatpak
flatpak run org.perezdecastro.Revolt
```