The officially official Devuan Forum!

You are not logged in.

#1 2024-05-01 20:31:43

morenonatural
Member
Registered: 2022-04-08
Posts: 4  

[SOLVED] flatpak and $XDG_DATA_DIR

hey, sup yall... using a mostly-recent net-install of Daedalus with KDE Plasma desktop here

I recently installed flatpak and was missing application icons in Plasma menu (the one that pops up when you press super/win key).

I noticed while running flatpak that it noticed that it complained that XDG_DATA_DIRS wasn't set. Looking around for values I added the following line to to my ~/.zprofile (I use TERM=zsh, by the way)

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

This would eventually add icons to Plasma menu, but it messes up plasma-wayland real bad. plasma-wayland.desktop wouldn't start or would start "without KWin" (I could see some borderless application windows, no background…). I didn't notice that changing my profile script with the line above would mess up plasma-wayland, so I had to switch to plasma.desktop (using X) and began trying different stuff to get back to wayland. I tried switching sddm→lightdm, debugging each desktop manager, no dice.

For the time being, I removed this magical line, but I'm back to not seeing the icons in plasma menu.

What can/should I do to have flatpak icons and keep using plasma-wayland.desktop?

Last edited by morenonatural (2024-05-01 20:34:46)

Offline

#2 2024-05-02 12:52:05

morenonatural
Member
Registered: 2022-04-08
Posts: 4  

Re: [SOLVED] flatpak and $XDG_DATA_DIR

it seems that chsh -s /bin/zsh-ing was the culprit. I've added the following line to my ~/.zprofile per this comment (after reading this discussion) and now everything seems to be working

emulate sh -c 'source /etc/profile'

Offline

Board footer