Alberto, sure that could work in principle. Good point.
- We'd have to not only copy the .service file, but modify its Exec= line to point inside the correct snap and update the file when a new snap version gets installed (or delete it if the new snap doesn't use the file anymore, etc).
- What is the use case that you hit this with? In my use case, both the session dbus daemon and the session dbus .service are all inside a monolithic snap. But it sounds like you want multiple snaps to install session .service files that can be run from another "session" snap? Just curious what you're envisioning.
Alberto, sure that could work in principle. Good point.
- We'd have to not only copy the .service file, but modify its Exec= line to point inside the correct snap and update the file when a new snap version gets installed (or delete it if the new snap doesn't use the file anymore, etc).
- What is the use case that you hit this with? In my use case, both the session dbus daemon and the session dbus .service are all inside a monolithic snap. But it sounds like you want multiple snaps to install session .service files that can be run from another "session" snap? Just curious what you're envisioning.