> Roman Riabenko via <[email protected]> hat am 25.08.2024 13:08 CEST 
> geschrieben:
> 
>  
> Hello
> 
> How to expose service files to D-Bus on a foreign distribution?
> 
> I installed gnome-text-editor with guix on a foreign distribution
> (PureOS byzantium). It would run from command line, but fail to start
> from the applications grid with the following error.
> 
> $ journalctl -f
> сер 25 10:35:03 pureos phosh[1402]: Failed to launch app 'Текстовий
> редактор' with startup id: '6546b399-a2e0-4ded-b278-84863a9f32bf'
> 
> I considered the presence of "DBusActivatable=true" in its desktop file
> and copied the service file. That allowed me to launch the application
> from the icon as expected. 
> 
> $ sudo cp /home/purism/.guix-profile/share/dbus-
> 1/services/org.gnome.TextEditor.service /usr/share/dbus-1/services/
> 
> Is there a better approach for making the service files available to D-
> Bus on a foreign distribution?

I'm 100% guessing here, but I think systemd just doesn't see your service files 
because they are not in the search path.
If this is the case, you can set XDG_DATA_DIRS in ~/.config/systemd/user.conf 
(under the Manager header), i.e.:
[Manager]
ManagerEnvironment="XDG_DATA_DIRS=/home/purism/.guix-profile/share"

If that doesn't work, I'm out of ideas :)

Reply via email to