Comments (2)
The problem is that the script must be executed in user context. So I think the easiest solution is the current one with the companion.desktop
file in /etc/xdg/autostart
. Systemd has support for user sessions but that means that the service file must be copied into every users home directory ($HOME/.local/share/systemd/user/companion.service
). Using systemd has no advantages in this case from my point of view.
Multiuser support is difficult in general because of the Confluence API design. The client has to listen on Port 31459 for incoming connections from the web browser. If a second user logs in, the script can not open the port because it is already opened by the first user. This is especially a problem in terminal server environments and of course also persists in the official clients for Windows and macOS.
TLDR; Only one user can use the companion app at the same time.
from companion4linux.
Well, there are several usecases about multiuser envs.
1st one - is terminal server. Which is ofc a problem. I think embedding router proxy into companion should solve this issue. Every session has enough data to distinguish one from another, but this is sure to be compliacated, but usefull usecase.
2nd one - is an environment with single user to be logged in simultaneously but several to work over time.
Second usecase could be solved through managing per user configuration. In future it could help to solve 1st one as well (multiple instances of companion run simultaneously in termnial server behind router proxy).
Per user configuration gives one more advantage, you don't need to be root to add confluence site to trusted list. And thus when you will make a GUI you can easily manage trusted sites with it run from regular linux user environment.
from companion4linux.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from companion4linux.