Giter VIP home page Giter VIP logo

Comments (7)

sonnyp avatar sonnyp commented on July 17, 2024

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

from junction.

Ramblurr avatar Ramblurr commented on July 17, 2024

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

from junction.

sonnyp avatar sonnyp commented on July 17, 2024

echo $XDG_DATA_DIRS from my shell shows the proper dirs.

Can you share the output ?
And echo $XDG_DATA_HOME

from junction.

sonnyp avatar sonnyp commented on July 17, 2024

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/

from junction.

sonnyp avatar sonnyp commented on July 17, 2024

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.

from junction.

sonnyp avatar sonnyp commented on July 17, 2024

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

Screenshot from 2021-12-02 22-09-55

Could it be that your desktop file is named like an other one? The name preceeding .desktop must be unique.

from junction.

sonnyp avatar sonnyp commented on July 17, 2024

Did you solve your problem ?

from junction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.