Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak apps are not added to the menu in Plasma Wayland #114

Closed
UriHerrera opened this issue May 31, 2023 · 4 comments
Closed

Flatpak apps are not added to the menu in Plasma Wayland #114

UriHerrera opened this issue May 31, 2023 · 4 comments
Labels
debian Issues coming from Debian upstream packages upstream-bug Issues that are determined to not be caused by our configuration.

Comments

@UriHerrera
Copy link
Member

UriHerrera commented May 31, 2023

Describe the bug
For some reason, Flatpak applications are not added to the applications menu even if they work correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Install an app using Flatpak
  2. Open the application menu
  3. No launcher available

Expected behavior
The application is listed in the application menu

Desktop (please complete the following information):

  • Nitrux 2.8.1

Additional context
I found that this is supposedly a problem with the environment variable XDG_DATA_DIRS; however, this variable is added to the ZSH shell configuration file.

The file .zshrc already includes this line.

export XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:$HOME/.local/share/flatpak/exports:$XDG_DATA_DIRS"

Changing to $HOME/.local/share/flatpak/exports doesn't have any effect.

@UriHerrera UriHerrera added the bug Issues caused by flaws, faults or unexpected behavior in the software. label May 31, 2023
@UriHerrera UriHerrera changed the title Flatpak apps are not added to the menu Flatpak apps are not added to menu May 31, 2023
@UriHerrera UriHerrera added upstream-bug Issues that are determined to not be caused by our configuration. and removed bug Issues caused by flaws, faults or unexpected behavior in the software. labels May 31, 2023
@UriHerrera
Copy link
Member Author

UriHerrera commented May 31, 2023

This is a bug in Plasma Wayland.

I switched to Plasma X11, and all the application launchers are listed. Many are missing on Plasma Wayland; for example, GPUScreenRecorder, and vokoscreen-ng, while Gnome Boxes are missing the icon.

I manually added the launchers to $HOME/.local/share/flatpak/exports/share/applications, so in my screenshot, the launchers are visible in Plasma Wayland. Still, after updating the Flatpaks, the icons are missing.

Plasma Wayland

imagen

Plasma X11

Screenshot_20230531_163328

@UriHerrera UriHerrera changed the title Flatpak apps are not added to menu Flatpak apps are not added to menu in Plasma Wayland May 31, 2023
@UriHerrera UriHerrera changed the title Flatpak apps are not added to menu in Plasma Wayland Flatpak apps are not added to the menu in Plasma Wayland May 31, 2023
@UriHerrera UriHerrera added the plasma-wayland Issues related or caused by the Plasma Wayland session label May 31, 2023
@eyduh
Copy link

eyduh commented Jun 25, 2023

I have this working on a pinebook pro running postmarketOS (edge) not sure which part is responsible for XDG_DATA_DIRS showing up under wayland on the pinebook but a quick glance shows that the KDE Frameworks is one minor version ahead ( 5.107.0 vs 5.106.0 ) and the different versions of the kernel but shouldn't affect it.

Operating System: postmarketOS edge
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9
Kernel Version: 6.2.0 (64-bit)
Graphics Platform: Wayland
Processors: 4 × ARM Cortex-A53, 2 × ARM Cortex-A72
Memory: 3.8 GiB of RAM
Graphics Processor: Mali-T860
Product Name: Pine64 Pinebook Pro

Flatpak 1.14.4

echo $XDG_DATA_DIRS 
$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

vs

Operating System: Nitrux 2.8.1 build.310523.sc
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.4-1-liquorix-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 7,5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Manufacturer: LENOVO
Product Name: 20BV001AMS
System Version: ThinkPad T450

Flatpak 1.14.4

echo $XDG_DATA_DIRS 
/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:/usr/local/share:/usr/share

On both systems the flatpaks are installed as system installations on /var

@UriHerrera
Copy link
Member Author

UriHerrera commented Jun 25, 2023

The issue is still present even if using KDE Frameworks 5.107. The values of the variable are the same, even if they are in a different order; it shouldn't matter.

The variable is loaded immediately on login; one can check this using the command env.

VirtualBox_Nitrux_2_25_06_2023_10_24_29

VirtualBox_Nitrux_2_25_06_2023_10_23_59

In this example, I installed Dolphin as a system Flatpak; the icon doesn't appear at all. I think that's even worse.

In X11, there's no problem.

VirtualBox_Nitrux_2_25_06_2023_10_31_52

VirtualBox_Nitrux_2_25_06_2023_10_31_55

The variable is not the problem since it works in Plasma X11. The problem is Plasma Wayland is not using it or something like that.

@UriHerrera
Copy link
Member Author

UriHerrera commented Jun 26, 2023

Fixed in Nitrux/nx-desktop-settings@20e485c

That should've been set in the upstream's file /etc/zsh/zprofile.

@UriHerrera UriHerrera added debian Issues coming from Debian upstream packages and removed plasma-wayland Issues related or caused by the Plasma Wayland session labels Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debian Issues coming from Debian upstream packages upstream-bug Issues that are determined to not be caused by our configuration.
Projects
None yet
Development

No branches or pull requests

2 participants