[GH-ISSUE #5150] [BUG]: Desktop Assistant not showing applications/displays options on Linux (KDE, Wayland) #4938

Closed
opened 2026-06-05 14:51:00 -04:00 by yindo · 2 comments
Owner

Originally created by @AmonBune on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5150

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

To easiest way to reproduce this is to just download the latest "Fedora KDE Plasma Desktop" OS and install it in a virtual machine with the default options.
I tested this with the currently latest Fedora version 43, KDE Plasma version 6.6.1, graphics platform is Wayland.

  • Install AnythingLLM using the official installer script (https://docs.anythingllm.com/installation-desktop/linux#install-using-the-installer-script) (at the time of writing the current version is v1.11.1)
  • Click through initial setup wizard until you are in the main menu / dashboard
  • Right-click the AnythingLLM icon in the taskbar
  • Click "Show AnythingLLM Assistant"
  • Click the "+" sign inside the chat box
  • the options to reference a screen, window or a part of the screen do not show up. It only shows "Attach Files" and Meetings.
Image

I'm not sure what component is the problem exactly, but I experienced the same problem on an EndeavourOS (Arch-based) machine which also uses the KDE/Wayland combo, so this might be a clue. If further testing or logs are required, let me know.

Are there known steps to reproduce?

No response

Originally created by @AmonBune on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5150 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? To easiest way to reproduce this is to just download the latest "Fedora KDE Plasma Desktop" OS and install it in a virtual machine with the default options. I tested this with the currently latest Fedora version 43, KDE Plasma version 6.6.1, graphics platform is Wayland. - Install AnythingLLM using the official installer script (https://docs.anythingllm.com/installation-desktop/linux#install-using-the-installer-script) (at the time of writing the current version is v1.11.1) - Click through initial setup wizard until you are in the main menu / dashboard - Right-click the AnythingLLM icon in the taskbar - Click "Show AnythingLLM Assistant" - Click the "+" sign inside the chat box - the options to reference a screen, window or a part of the screen do not show up. It only shows "Attach Files" and Meetings. <img width="432" height="690" alt="Image" src="https://github.com/user-attachments/assets/d438680c-a9f5-4f7d-be74-eb79f4a4a997" /> I'm not sure what component is the problem exactly, but I experienced the same problem on an EndeavourOS (Arch-based) machine which also uses the KDE/Wayland combo, so this might be a clue. If further testing or logs are required, let me know. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-06-05 14:51:00 -04:00
yindo closed this issue 2026-06-05 14:51:00 -04:00
Author
Owner

@timothycarambat commented on GitHub (Mar 5, 2026):

Correct, this is because of limitations with Wayland/KDE and the large amount of effort to patch around it. @angelplusultra had a solution around this but the solution was extremely wayland specific since it has some kind of control panel limitation and trying to use the original Electron displaySources API crashes the entire application - so we stubbed it out for Linux

<!-- gh-comment-id:4006577198 --> @timothycarambat commented on GitHub (Mar 5, 2026): Correct, this is because of limitations with Wayland/KDE and the large amount of effort to patch around it. @angelplusultra had a solution around this but the solution was extremely wayland specific since it has some kind of control panel limitation and trying to use the original Electron displaySources API crashes the entire application - so we stubbed it out for Linux
Author
Owner

@Games1505 commented on GitHub (Mar 27, 2026):

This is a follow-up to my original report (#5155) which was closed as a duplicate of this issue. My setup: Ubuntu 24.04 (X11 session, not Wayland)
AnythingLLM Desktop AppImage v1.11.1
I already installed xdg-desktop-portal-gtk (and also tried xdg-desktop-portal + xdg-desktop-portal-kde just in case)
AppArmor is enabled (the installer created the rule)
Launched with ELECTRON_ENABLE_LOGGING=1 — no crash, no errors in console, the Desktop Assistant opens fine with Ctrl+/
But the "+" menu inside the Assistant is completely empty (no "Area Capture", no "Open Programs", no screen/window options at all)

The displaySources functionality is either not called or silently failing on Ubuntu 24.04 X11.I understand Linux desktop environments are fragmented and you stubbed this out to avoid crashes (especially on Wayland/KDE). Is there any debug flag, environment variable, or temporary workaround I can try?

<!-- gh-comment-id:4144577766 --> @Games1505 commented on GitHub (Mar 27, 2026): This is a follow-up to my original report (#5155) which was closed as a duplicate of this issue. My setup: Ubuntu 24.04 (X11 session, not Wayland) AnythingLLM Desktop AppImage v1.11.1 I already installed xdg-desktop-portal-gtk (and also tried xdg-desktop-portal + xdg-desktop-portal-kde just in case) AppArmor is enabled (the installer created the rule) Launched with ELECTRON_ENABLE_LOGGING=1 — no crash, no errors in console, the Desktop Assistant opens fine with Ctrl+/ But the "+" menu inside the Assistant is completely empty (no "Area Capture", no "Open Programs", no screen/window options at all) The displaySources functionality is either not called or silently failing on Ubuntu 24.04 X11.I understand Linux desktop environments are fragmented and you stubbed this out to avoid crashes (especially on Wayland/KDE). Is there any debug flag, environment variable, or temporary workaround I can try?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4938