This Python script emulates the functionality of the Atlassian Companion App (Windows/Mac) for usage on Linux clients.
With the Companion App you can edit files in Atlassian Confluence with your preferred (local installed) desktop application.
This script is currently in beta. Contributions welcome. Please also tell me if the script just works fine with your confluence installation and linux distribution.
- Download and install the
.deb
package from the latest release on Github. - After installation please log out and log in again. The script then starts automatically.
- Install required Python packages
apt install python3-pip python3-distutils python3-pyinotify
pip3 install websockets
-
Edit
companion.py
and changeALLOWED_SITE = "Confluence"
to your site name. If the defined name does not match the confluence server name, all requests are rejected. If rejected, the script prints out the site name, so you can adjust it. -
Set execution rights and start the script.
chmod +x companion.py
./companion.py
Further hints:
- Temporary files will be saved in
~/.cache/companion/tmp
. Please ensure that you have write permissions in that directory. - You can put
companion.py
in your personal autostart. - You can copy
companion.desktop
into/etc/xdg/autostart
to install it in autostart for all users. Please do not forget to adjust the script path in thecompanion.desktop
file.
Update: SSL encryption between Browser and Companion App (through atlassian-domain-for-localhost-connections-only.com) is not supported anymore as described here. Confluence now uses a direct WebSocket connection to 127.0.0.1 (no domain name) without transport encryption.