How to launch automatically a daemon in a separate flatpak?

Goffi goffi at goffi.org
Sun Jul 15 12:53:15 UTC 2018


Le samedi 14 juillet 2018, 16:48:29 CEST Goffi a écrit :
> Le vendredi 13 juillet 2018, 15:05:09 CEST Ryan Gonzalez a écrit :
> > I *think* you could just edit the .service file to run your flatpaked
> > daemon?
> 
> Hi, thanks for your answer, but I'm not sure to understand: where should
> I put this file (your are talking about the D-Bus .service I've linked I
> suppose)? It will be inside the flatpak container, so it will not work
> to launch the service on the host when a user launch a frontend (or is
> there any mechanism to handle it when it's inside a container? Where
> should I put the file then ?).
> 
> Of course I can put a D-Bus or SystemD service on my host machine, but
> what I want is to set something in my manifest so Flatpak will launch
> the service (which is an other flatpak to launch) automatically when I
> start any frontend, and launch it only once (i.e. don't launch it again
> if it is already started), without need for end user to write any
> .service file.
> 
> Thanks
> Goffi


As an update, I was misplacing the file, after help from TingPing on 
https://github.com/flatpak/flatpak/issues/1902 I could make it work by 
placing the .service file at /app/share/dbus-1/services/
org.salutatoi.SAT.service and the Exec line doesn't need to be modified.

Thanks a lot to Ryan Gonzalez  and TingPing, my packages start to be 
usable. I now need to manage metadata, screenshots and icons.

Regards
Goffi




More information about the Flatpak mailing list