# Sunshine flatpak not working -- suggestions for remote desktop?

**URL:** <https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066>\
**Category:** Bluefin\
**Created:** [January 2, 2025, 10:55pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066 "2025-01-02T22:55:28Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 2, 2025, 10:55pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/1 "2025-01-02T22:55:28Z")

</div>

Hello, I was looking for a solution to remotely access my Bluefin system. Normally I use Parsec on my windows/mac systems, but you cannot be a host for Parsec on Linux. So in the past I’ve used Sunshine on other distros with great success.

However, installing Sunshine via flatpak doesn´t seem to work properly. I keep getting the same message:

> **Attention!** Sunshine detected these errors during startup. We **STRONGLY RECOMMEND** fixing them before streaming.
> 
> - Fatal: You must run [sudo setcap cap\_sys\_admin+p $(readlink -f $(which sunshine))] for KMS display capture to work!
> - Fatal: Unable to find display or encoder during startup.
> - Fatal: Please check that a display is connected and powered on.

I think these errors are there because of the isolated nature of the flatpak, and that maybe I should give it some specific permissions? I’m not really sure. I don´t want to just jump and run terminal commands that I don´t understand.

Has anyone else experienced the same issue? Any suggestions on how to tackle this? If Sunshine is a no-go at this moment, what do you suggest for remote desktop? I like Sunshine and Parsec because of their low latency.

---

<div class="post-metadata">

**Author:** ![j0rge](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/j0rge/32/8_2.png) [@j0rge](https://universal-blue.discourse.group/u/j0rge)\
**Post date:** [January 2, 2025, 10:58pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/2 "2025-01-02T22:58:28Z")

</div>

Did you do the post-install setup? [Install Sunshine on Linux | Flathub](https://flathub.org/apps/dev.lizardbyte.app.Sunshine) has the instructions.

---

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 3, 2025, 10:55am UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/3 "2025-01-03T10:55:32Z")

</div>

Hi Jorge, yes I did. I ran both commands as instructed, and the issue persists.

The second command (sudo -i PULSE\_SERVER…) gives me this terminal error, but I’m not sure on how to fix this:

F: Can’t find a11y bus: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.a11y.Bus: Permission denied  
bwrap: Can’t find source path /run/user/1000/pulse/native: Permission denied

---

<div class="post-metadata">

**Author:** ![red11](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/red11/32/3696_2.png) [@red11](https://universal-blue.discourse.group/u/red11)\
**Post date:** [January 4, 2025, 5:12pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/4 "2025-01-04T17:12:44Z")

</div>

Are you using some non-English language as default system language? If yes, there is issue reported at Github: [Startup call for Linux+Flatpak (sudo -i PULSE\_SERVER…) is incorrect.](https://github.com/LizardByte/Sunshine/issues/3261)

If not, I suggest to open a new issue at Sunsine Github. Flatpaks should not be working anything different on Blufin vs. other Linux distributions. It case of flatpaks it is the best to search help upstream… search for upstream bug tracker, search for upstream forum etc. I doubt you will get something really useful here on this Blufin specific forum.

---

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 6, 2025, 4:00pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/5 "2025-01-06T16:00:43Z")

</div>

thanks to both of you guys.

I digged out an old laptop to see why Sunshine was working on my old Pop OS! install. And then it hit me – that was running on X, not wayland.

So I tested it and presto, now it works perfectly as long as I run Bluefin on X. I know it’s not ideal, but a solution is a solution…!

I’m not sure what’s the deal with Wayland, but I’ll open an issue at Sunshine Github. Leaving this solution here in case someone else runs into this 🙂

---

<div class="post-metadata">

**Author:** ![svnskr](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@svnskr](https://universal-blue.discourse.group/u/svnskr)\
**Post date:** [January 6, 2025, 4:30pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/6 "2025-01-06T16:30:16Z")

</div>

Strange! On my Bazzite Gnome installation with wayland, Sunshine works like a charm.

---

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 7, 2025, 8:30am UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/7 "2025-01-07T08:30:09Z")

</div>

You install it there using a ujust command, no? Maybe that’s the difference. Either way the ujust command to install sunshine doesn’t exist in bluefin so I cannot test it ☹

---

<div class="post-metadata">

**Author:** ![svnskr](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@svnskr](https://universal-blue.discourse.group/u/svnskr)\
**Post date:** [January 7, 2025, 11:19am UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/8 "2025-01-07T11:19:04Z")

</div>

On my bluefin-laptop I have installed Moonlight which I use for connecting the Sunshine server.

I just installed Sunshine on my bluefin-laptop from the Flatpak store, just to have a look if it’s working. And it works.

---

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 7, 2025, 3:31pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/9 "2025-01-07T15:31:11Z")

</div>

mmm then not sure why… I tried installing sunshine on both my desktop and my laptop, both running bluefin, and I keep getting the same issue. Again, running it on X11 makes it ok but it’s been very weird. Are you running bluefin stable or latest?

---

<div class="post-metadata">

**Author:** ![svnskr](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@svnskr](https://universal-blue.discourse.group/u/svnskr)\
**Post date:** [January 7, 2025, 5:35pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/10 "2025-01-07T17:35:15Z")

</div>

I’m running bluefin:stable

---

<div class="post-metadata">

**Author:** ![c-avendano](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/c-avendano/32/4395_2.png) [@c-avendano](https://universal-blue.discourse.group/u/c-avendano)\
**Post date:** [January 7, 2025, 5:58pm UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/11 "2025-01-07T17:58:59Z")

</div>

Me too. Super weird.

There’s already an issue that described exactly what was happening to me on the sunshine github: [Unable to run Sunshine Flatpak on Fedora atomic desktops with Wayland (Kinoite 40, Silverblue 40, Aurora, Bluefin) · Issue #2948 · LizardByte/Sunshine · GitHub](https://github.com/LizardByte/Sunshine/issues/2948)

Sadly closed without answer… but the fact that it works for some people and not for others makes me think it’s just the flatpak acting up. I’ll wait for the Sunshine team to update it, and use the X11 session for now.

---

<div class="post-metadata">

**Author:** ![xlion](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/xlion/32/2076_2.png) [@xlion](https://universal-blue.discourse.group/u/xlion)\
**Post date:** [January 8, 2025, 10:42am UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/12 "2025-01-08T10:42:55Z")

</div>

I recommend [RustDesk](https://github.com/rustdesk/rustdesk), it works well on Wayland on Bluefin 41 (GNOME 47) (I also tested on current Silverblue 41), and it can **remember the token after reboot most of times** (Wayland still casues uncertainty), but RustDesk **didn’t** support Wayland login screen, so you have some options:

1. Use `sddm` and disable its Wayland functionality by [this config from ArchWiki, 2.11 Rootless](https://wiki.archlinux.org/title/SDDM)
2. Use `lightdm`, itself is currently using x11
3. Auto login

But all of them needs _layering_(unless you’re creating your own images), flatpak is a bad idea for remote desktop software, though it works, but not for unattended access.

For easier updates, you can consider [my repo](https://github.com/xlionjuan/rustdesk-rpm-repo), but it is **unofficial**.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/e/e39f7d1952979cf23b0f8d634e025fb38da50026.png) [@system](https://universal-blue.discourse.group/u/system)\
**Post date:** [January 9, 2025, 10:42am UTC](https://universal-blue.discourse.group/t/sunshine-flatpak-not-working-suggestions-for-remote-desktop/6066/13 "2025-01-09T10:42:58Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
