Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 4.58 KB

README.md

File metadata and controls

54 lines (36 loc) · 4.58 KB

Confluence Companion App for Linux

The Companion App for Linux is an unoffical Linux port of the Atlassian Companion App (originally only available for Windows and macOS). In contrast to the official fat Electron app, this is basically just a tiny python script (~400 lines).

Please note that the Companion functionality is now only available for Confluence Data Center (as of February 2024). Atlassian removed it from the Cloud version in 2022.

With the Companion App you can edit files in Atlassian Confluence with your preferred (local installed) desktop application. The companion app will automatically upload the file to Confluence if it changed on disk.

When reporting bugs, please append a detailed description of the error including which Confluence version you are using and whether you are running your own Confluence server or if you are using the cloud version.

Debian Package Installation (Debian/Ubuntu/Mint)

  1. Download and install the .deb package from the latest release on Github.
  2. Open Confluence in your web browser, open a document and click on "Edit". Your browser will ask you now to allow executing Companion4Linux. A desktop notification will appear informing you about the current companion activity.

Manual Installation (Debian/Ubuntu/Mint)

# install required Python packages
apt install python3-distutils python3-pyinotify

# set execution rights and copy `companion2.py` (for Confluence 7.4.0 and newer)
chmod +x companion2.py
cp companion2.py /usr/bin
cp companion-protocol-handler.desktop /usr/share/applications
update-desktop-database

Open Confluence in your web browser, open a document and click on "Edit". Your browser will ask you now to allow executing Companion4Linux. A desktop notification will appear informing you about the current companion activity.

Further hints:

  • File monitoring will be cancelled as soon as the desktop notification is closed. Make sure that the notification is visible until you finished editing your document.
  • Temporary files will be saved in ~/.cache/companion/tmp and config files in ~/.config/companion. Please ensure that you have write permissions in that directories.
  • When executing firefox in the terminal, you can see the Companion4Linux output. Check this output for troubleshooting and before reporting bugs.

Functionality

There are 3 ways how the companion app works.

1. Local Web Server With SSL Certificate

Atlassian's first attempt was that the web browser connects via websocket to "atlassian-domain-for-localhost-connections-only.com" (which points to 127.0.0.1) where the companion app listens for requests.

SSL encryption between Browser and Companion App (through "atlassian-domain-for-localhost-connections-only.com") is not supported anymore as described here.

This technology is not supported anymore by Companion4Linux.

2. Local Web Server Without SSL

The web browser connects via websocket to 127.0.0.1 where the companion app listens for requests. This was replaced with a new technology (case 3) in Atlassian Companion App v1.0.0 / Confluence 7.4.0 in order to support terminal server environments (see here).

This method was still used lately in Confluence Cloud but support was dropped 2022, therefore it was also removed from Companion4Linux. Before that, method 1 and 2 were handled by "companion.py".

3. Via Protocol Scheme »atlassian-companion:«

The companion app gets called from a browser using a protocol scheme atlassian-companion: with a parameter like {"link":"https://....}. The user needs to allow this execution (once per domain) in his browser. The browser will then start the application which is registered for this protocol with a command line parameter atlassian-companion:{"link":"https://....}. With this information, it can download, monitor and upload the requested file.

This method is handled by "companion2.py".