[GH-ISSUE #441] auto start when installed via flatpak #342

Closed
opened 2026-05-05 06:04:18 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @Alexivia on GitHub (Sep 24, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/441

Operating Systems

Server: Windows 10

Client: Ubuntu 18.04

Barrier Version

2.3.1

Question

If I installed Barrier via flatpak on the client side (linux), how do I make the client auto start? This is because the client is installed on a server to which I have no easy access to the keyboard/mouse, only to its display output, and since I frequently need to reboot the machine, it would be useful if I could promptly start using the keyboard/mouse of the server instead of having to start the Barrier software manually after each restart. Also, the client machine has auto-login enabled, so my user session is started immediately, and I do not require Barrier to run as root.

Thank you for your time. Regards,
Alexandre Vieira

Originally created by @Alexivia on GitHub (Sep 24, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/441 ### Operating Systems ### Server: Windows 10 Client: Ubuntu 18.04 ### Barrier Version ### 2.3.1 ### Question ### If I installed Barrier via `flatpak` on the client side (linux), how do I make the client auto start? This is because the client is installed on a server to which I have no easy access to the keyboard/mouse, only to its display output, and since I frequently need to reboot the machine, it would be useful if I could promptly start using the keyboard/mouse of the server instead of having to start the Barrier software manually after each restart. Also, the client machine has auto-login enabled, so my user session is started immediately, and I do not require Barrier to run as root. Thank you for your time. Regards, Alexandre Vieira
Author
Owner

@AdrianKoshka commented on GitHub (Sep 24, 2019):

If I installed Barrier via flatpak on the client side (linux), how do I make the client auto start?

I guess through your desktop-environments auto-start mechanism, you could try to add flatpak run com.github.debauchee.barrier.

<!-- gh-comment-id:534671794 --> @AdrianKoshka commented on GitHub (Sep 24, 2019): > If I installed Barrier via flatpak on the client side (linux), how do I make the client auto start? I guess through your desktop-environments auto-start mechanism, you could try to add `flatpak run com.github.debauchee.barrier`.
Author
Owner

@Alexivia commented on GitHub (Sep 25, 2019):

I guess through your desktop-environments auto-start mechanism, you could try to add flatpak run com.github.debauchee.barrier.

Thank you for your reply! This however does not configure the client to point to the correct server IP, how should I do this?

<!-- gh-comment-id:535079476 --> @Alexivia commented on GitHub (Sep 25, 2019): > I guess through your desktop-environments auto-start mechanism, you could try to add `flatpak run com.github.debauchee.barrier`. Thank you for your reply! This however does not configure the client to point to the correct server IP, how should I do this?
Author
Owner

@AdrianKoshka commented on GitHub (Sep 25, 2019):

Oh, hrm, let me get back to you on that! :)

<!-- gh-comment-id:535099773 --> @AdrianKoshka commented on GitHub (Sep 25, 2019): Oh, hrm, let me get back to you on that! :)
Author
Owner

@MPArnold commented on GitHub (Sep 27, 2019):

Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!"
Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'.
To get autostart working I did the following ...
(1) Copy the flatpak desktop to /etc/xdg/autostart/
sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications/com.github.debauchee.barrier.desktop /etc/xdg/autostart/
(2) Edit the 'Exec' directive
Exec=flatpak run com.github.debauchee.barrier
NB: This was on a Debian setup.

<!-- gh-comment-id:535797679 --> @MPArnold commented on GitHub (Sep 27, 2019): Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!" Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'. To get autostart working I did the following ... (1) Copy the flatpak **desktop** to /etc/xdg/autostart/ `sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications`/com.github.debauchee.barrier.desktop /etc/xdg/autostart/ (2) Edit the 'Exec' directive `Exec=flatpak run com.github.debauchee.barrier` NB: This was on a Debian setup.
Author
Owner

@SkOrPn commented on GitHub (Sep 28, 2019):

"Exec=flatpak run com.github.debauchee.barrier"

This did not work on a fresh install of MX-18.3 with an error output of "bash: run: command not found". I had thought that since MX is also based on Debian that your Exec directive edit command would have worked here too. But nope, lol. Probably going to take me a long time to figure out how to auto start Barrier today.

<!-- gh-comment-id:536210477 --> @SkOrPn commented on GitHub (Sep 28, 2019): "Exec=flatpak run com.github.debauchee.barrier" This did not work on a fresh install of MX-18.3 with an error output of "bash: run: command not found". I had thought that since MX is also based on Debian that your Exec directive edit command would have worked here too. But nope, lol. Probably going to take me a long time to figure out how to auto start Barrier today.
Author
Owner

@AdrianKoshka commented on GitHub (Sep 28, 2019):

It seems that bash thought you wanted to execute run instead of flatpak run.

<!-- gh-comment-id:536210585 --> @AdrianKoshka commented on GitHub (Sep 28, 2019): It seems that bash thought you wanted to execute `run` instead of `flatpak run`.
Author
Owner

@SkOrPn commented on GitHub (Sep 28, 2019):

Haha, wow you replied in like a minute after I posted that above. Lol, you must have been sitting waiting for me, haha. J/K

EDIT: Got it working by simply using the built in Auto start in "Session and Startup" manager. Just put that "flatpak run com.github.debauchee.barrier" in the command section and rebooted. It remembered the settings just fine. Thanks for the quick reply.

<!-- gh-comment-id:536210864 --> @SkOrPn commented on GitHub (Sep 28, 2019): Haha, wow you replied in like a minute after I posted that above. Lol, you must have been sitting waiting for me, haha. J/K EDIT: Got it working by simply using the built in Auto start in "Session and Startup" manager. Just put that "flatpak run com.github.debauchee.barrier" in the command section and rebooted. It remembered the settings just fine. Thanks for the quick reply.
Author
Owner

@AdrianKoshka commented on GitHub (Sep 28, 2019):

No problem, I had just gotten out of bed.

<!-- gh-comment-id:536217357 --> @AdrianKoshka commented on GitHub (Sep 28, 2019): No problem, I had just gotten out of bed.
Author
Owner

@Alexivia commented on GitHub (Sep 29, 2019):

Got it working by simply using the built in Auto start in "Session and Startup" manager. Just put that "flatpak run com.github.debauchee.barrier" in the command section and rebooted. It remembered the settings just fine. Thanks for the quick reply.

I too solved my problem using "Session and Startup" manager, but using the Barrier installed from the "Ubuntu Software" app installer, since I figured out it was available through there, and thus uninstalled the flatpack version.

Thank you for all your replies.

<!-- gh-comment-id:536337733 --> @Alexivia commented on GitHub (Sep 29, 2019): > Got it working by simply using the built in Auto start in "Session and Startup" manager. Just put that "flatpak run com.github.debauchee.barrier" in the command section and rebooted. It remembered the settings just fine. Thanks for the quick reply. I too solved my problem using "Session and Startup" manager, but using the Barrier installed from the "Ubuntu Software" app installer, since I figured out it was available through there, and thus uninstalled the flatpack version. Thank you for all your replies.
Author
Owner

@byteshiva commented on GitHub (Nov 23, 2020):

Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!"
Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'.
To get autostart working I did the following ...
(1) Copy the flatpak desktop to /etc/xdg/autostart/
sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications/com.github.debauchee.barrier.desktop /etc/xdg/autostart/
(2) Edit the 'Exec' directive
Exec=flatpak run com.github.debauchee.barrier
NB: This was on a Debian setup.

How to specify server address while running flatpak run on "startup and sessions" in ubuntu

<!-- gh-comment-id:732403683 --> @byteshiva commented on GitHub (Nov 23, 2020): > Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!" > Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'. > To get autostart working I did the following ... > (1) Copy the flatpak **desktop** to /etc/xdg/autostart/ > `sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications`/com.github.debauchee.barrier.desktop /etc/xdg/autostart/ > (2) Edit the 'Exec' directive > `Exec=flatpak run com.github.debauchee.barrier` > NB: This was on a Debian setup. How to specify server address while running flatpak run on "startup and sessions" in ubuntu
Author
Owner

@shymega commented on GitHub (Dec 7, 2020):

Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!"
Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'.
To get autostart working I did the following ...
(1) Copy the flatpak desktop to /etc/xdg/autostart/
sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications/com.github.debauchee.barrier.desktop /etc/xdg/autostart/
(2) Edit the 'Exec' directive
Exec=flatpak run com.github.debauchee.barrier
NB: This was on a Debian setup.

How to specify server address while running flatpak run on "startup and sessions" in ubuntu

Just a minor note, but please keep your question in the original issue you made on the Flatpak repo - your question here is not particularly clear either, but also, its best to keep it separate. I have proposed a fix on your original issue.

<!-- gh-comment-id:740085995 --> @shymega commented on GitHub (Dec 7, 2020): > > Every time I booted Linux I too had to re-input the server IP. Seems to be a wider issue in play; "Barrier client not necessarily retaining server IP across Linux executions." Plus a really good question: "How is it meant to do so!" > > Anyway, it's now remembering the IP address! I don't know why but one thing I did was go through the motions of the (client-side) 'Save Configuration'. > > To get autostart working I did the following ... > > (1) Copy the flatpak **desktop** to /etc/xdg/autostart/ > > `sudo cp /var/lib/flatpak/app/com.github.debauchee.barrier/current/active/files/share/applications`/com.github.debauchee.barrier.desktop /etc/xdg/autostart/ > > (2) Edit the 'Exec' directive > > `Exec=flatpak run com.github.debauchee.barrier` > > NB: This was on a Debian setup. > > How to specify server address while running flatpak run on "startup and sessions" in ubuntu Just a minor note, but please keep your question in the original issue you made on the Flatpak repo - your question here is not particularly clear either, but also, its best to keep it separate. I have proposed a fix on your original issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#342
No description provided.