Closed Ramblurr closed 2 years ago
However done of these are picked up by Junction.
Are the picked up by other applications / your DE?
Notice in the log below that XDG_DATA_DIRS does not contain $HOME/.local/share/applications
Doesn't look like a problem with Junction then - is it a problem with Silverblue or your modifications? Either way - I can't help.
Not sure what you expect me to solve
Are the picked up by other applications / your DE?
Yes they are, they work fine.
Doesn't look like a problem with Junction then - is it a problem with Silverblue or your modifications? Either way - I can't help.
It seems like a problem related to the flatpak. echo $XDG_DATA_DIRS
from my shell shows the proper dirs. But if I flatpak enter <appid> bash
any flatpak appplication (including Junction) and check for $XDG_DATA_DIRS, it is not set.
If I attempt to override the var with:
flatpak override --user --env=XDG_DATA_DIRS=/var/home/ramblurr/.local/share:/usr/local/share:/usr/share re.sonny.Junction
then running Junction errors with:
$ flatpak run re.sonny.Junction
F: Can't find a11y bus: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer.
(gjs:3): Gjs-CRITICAL **: 15:21:54.720: JS ERROR: Error: GSettings schema re.sonny.Junction not found
_init@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:551:23
@file:///app/share/re.sonny.Junction/common.js:3:25
(gjs:3): Gjs-CRITICAL **: 15:21:54.720: Module file:///app/bin/re.sonny.Junction threw an exception
echo $XDG_DATA_DIRS from my shell shows the proper dirs.
Can you share the output ?
And echo $XDG_DATA_HOME
On a Fresh Silverblue 35 VM
[sonny@fedora ~]$ echo $XDG_DATA_DIRS
/var/home/sonny/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
Ha - got confused. $XDG_DATA_DIRS
shouldn't contain ~/.local/share
anyway.
https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html
$XDG_DATA_DIRS defines the preference-ordered set of base directories to search for data files in addition to the $XDG_DATA_HOME base directory. The directories in $XDG_DATA_DIRS should be seperated with a colon ':'.
$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
Everything looks good here on Silverblue 35 and I'm able to use custom desktop files
[sonny@fedora ~]$ cp /usr/share/applications/firefox.desktop ~/.local/share/applications/firefox2.desktop
[sonny@fedora ~]$ update-desktop-database ~/.local/share/applications/
[sonny@fedora ~]$ flatpak run --command=sh re.sonny.Junction
[📦 re.sonny.Junction ~]$ echo $XDG_DATA_HOME
/var/home/sonny/.var/app/re.sonny.Junction/data
[📦 re.sonny.Junction ~]$ ls /var/home/sonny/.var/app/re.sonny.Junction/data/applications/
firefox2.desktop mimeinfo.cache
[📦 re.sonny.Junction ~]$ ls ~/.local/share/applications/
firefox2.desktop mimeinfo.cache
[📦 re.sonny.Junction ~]$ exit
[sonny@fedora ~]$ flatpak run re.sonny.Junction https://gnome.org
Could it be that your desktop
file is named like an other one? The name preceeding .desktop
must be unique.
Did you solve your problem ?
I've installed Junction on flatpak on Fedora Silverblue (modified, without gnome).
I have a bunch of custom desktop files in ~/.local/share/applications (firefox profiles, etc). However done of these are picked up by Junction.
Notice in the log below that XDG_DATA_DIRS does not contain $HOME/.local/share/applications
update-desktop-database
on $HOME/.local/share/applications