-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
XDG_DATA_DIRS is not set on fish shell #3109
Comments
I've been using fish for years and Flatpaks dirs have always been picked up. |
You need to reboot once when you first install Flatpak, I'm guessing that's
the issue given that desktop entries aren't appearing either.
…On Tue, Sep 17, 2019, 2:37 PM qlem ***@***.***> wrote:
Linux distribution and version
5.2.14-arch2-1-ARCH - x86_64 GNU/Linux
Flatpak version
x86_64 GNU/Linux
Description of the problem
XDG_DATA_DIRS is not set on fish shell. No desktop entry appears after
install an app.
Steps to reproduce
Use fish shell as default shell, install flatpak then an app.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3109?email_source=notifications&email_token=AAM4YSK5I5YHD34HHMZNNGTQKEWX7A5CNFSM4IXUIYJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HL6IBVA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM4YSOWFLUYERG6IAOBOGLQKEWX7ANCNFSM4IXUIYJQ>
.
|
I just tried, doesn't work. I have reboot after Flatpak install and after app install too. $XDG_DATA_DIRS is still not defined.
I have to update $XDG_DATA_DIRS myself. |
I was getting an error about both |
The expected format is :-separated. Your XDG_DATA_DIRS seems to be partially space-separated. |
That's because |
Hmm, Actually I can reproduce this now... Eitherway this isn't a Flatpak bug, it was working and fish is somehow inheriting the env vars incorrectly. |
I've got the same problem on a Fedora 31 Workstation with KDE. |
I have the same problem using fish as login shell. |
Uh so anyone got a solution without setting the variable themselves? Don't really want to chsh just because of this annoyance. |
I don't use a lot of flatpaks. So I've done some shims in the past. Basically make a file that runs the Flatpak named what you want it named in use/bin with a .desktop pointing to it in menus. It's dumb but works. |
Shouldn't someone report this on the fish tracker since it seems like a regression on their side? |
I would not say that this is an issue in fish. |
See also this discussion about It might be possible to add a hack into the session script, which uses |
Does this recently added command in fish help?
If fish doesn't want to implement POSIX, shouldn't they advertise a way to setup system environment variables? I think if multiple third party projects have run into this issue before, then this indicates a usability issue in fish, at least. |
They advertise to use |
Still think this is an issue with fish in general. |
/etc/environment doesn't really let you append to environment variables
from what I can tell, thus using it for XDG_DATA_DIRS is a no-go.
…On Sun, May 31, 2020 at 1:19 PM travankor ***@***.***> wrote:
Still think this is an issue with fish in general. /etc/environment and
logins.defs are OS-specific and somewhat limited in general, which is why
profile.d is popular. What flatpak could do is have a fish-specific
function in /usr/share/fish/vendor_conf.d.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM4YSJMDEA5DEQVVZX2XDDRUKNURANCNFSM4IXUIYJQ>
.
--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
|
This just happened to me. Flatpak desktop files have been showing up fine till a system update somewhere last week and now they don't anymore. According to the system package manager Flatpak hasn't been upgraded in the meantime so I'm not sure what changed. |
|
As a temporary workaround for flatpak/flatpak#3109.
It could also to be a bug in debians patches for lxde-common / openbox-lxde-session debian #906288. Also check raspians solution. |
Just hit that on OpenSuse Tumbleweed. Couldn't really fix it until I found the solution in fish-shell/fish-shell#7485 (comment). |
Is this possibly related to my below issue? |
Can confirm this issue for Full Info
Current workaround: |
This is still happening on Fedora 35 Kinoite when After switching to |
If a fish user wants to contribute a tested snippet for fish's equivalent of What we would need is something equivalent to |
I have this in my fish configuration which probably doesn't do quite the same thing as if command -vq flatpak
set -ga fish_user_paths ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
set -gx --path XDG_DATA_DIRS ~/.local/share/flatpak/exports/share
for install_dir in (flatpak --installations)
set -gxa XDG_DATA_DIRS $install_dir/exports/share
end
end If Flatpak were to provide a |
Technically, Fish users can already make this work using https://github.com/edc/bass, but it's also nice to have this working on an out-of-the-box Flatpak installation. Fixes flatpak#3109. Signed-off-by: Ryan Gonzalez <[email protected]>
Technically, Fish users can already make this work using https://github.com/edc/bass, but it's also nice to have this working on an out-of-the-box Flatpak installation. Fixes #3109. Signed-off-by: Ryan Gonzalez <[email protected]>
I tested this snippet in my own if command -vq flatpak
set -ga fish_user_paths ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
set -gx --path XDG_DATA_DIRS /usr/local/share/ /usr/share/ ~/.local/share/flatpak/exports/share
for install_dir in (flatpak --installations)
set -gxa XDG_DATA_DIRS $install_dir/exports/share
end
end flatpak doesn't complain anymore, flatpaks are showing up in my application launchers, and the rest of my system is still working 👍 [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html |
@rohrschacht, please could you test the version of this that got merged in #4575 (https://github.com/flatpak/flatpak/blob/1.13.2/profile/flatpak.fish)? And if that doesn't work or has things wrong with it, please report a new issue rather than replying to a closed issue. Suggestions on an issue should not be interpreted as official, reviewed or correct unless they have actually been merged into the codebase. |
I guess there is an approve fix because this is closed? I just hit the issue. Is the solution from @rohrschacht above the final one? |
If the version of this that is included in Flatpak releases is wrong, please report a new issue. Please do not reply to an issue that has been closed. |
Linux distribution and version
5.2.14-arch2-1-ARCH - x86_64 GNU/Linux
Flatpak version
Flatpak 1.4.2
Description of the problem
XDG_DATA_DIRS is not set on fish shell. No desktop entry appears after install an app.
Steps to reproduce
Use fish shell as default shell, install flatpak then an app.
The text was updated successfully, but these errors were encountered: