New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kdeconnect: [WIP/RFC] let dbus activate via systemd #19622
Conversation
@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh, @cillianderoiste and @ttuegel to be potential reviewers. |
I forgot to add, that in order to actually activate the configuration on nixos, you need the following: {
services.dbus.packages = with pkgs; [ kdeconnect ];
systemd.packages = with pkgs; [ kdeconnect ];
} |
I don't know Thanks for your work on dbus activation and this poc 👍.
|
But you are absolutely right, upstream should be shipping all of this (they are shipping the dbus files but without the crucial SystemdService part). The way I understand it is where KDE wants to go, but haven't yet (gnome has afaik already started). We can however start slowly now. What I propose to do:
Of course, one can also argue that this is not worth the effect as we simply need to wait for upstream but as I see this as a nix learning experience, I don't mind doing the work. update: before I throw a lot of time after this, I would however like to get @ttuegel's input as the kde maintainer. |
This sounds good to me! It would be a nice abstraction to have. |
we also now better integration of systemd user applications requiring x11: #26094 |
What is the status of this pull request? |
This needs to either:
In the mean time, this is working fine. |
Thank you for your contributions.
|
So yeah, 4 years later - I'll get to this any time now.... |
I'm going to close this and just wait for upstream to get proper support. It's otherwise a lot of work on our side. |
Motivation for this change
This is proof of concept and VERY much open to comments.
The next version of systemd will give us the standard targets for launching the entire graphical session using systemd, but we can (and I have here) been taking advantage of having dbus launch dbus activated services via systemd instead of doing it directly.
It will give us 3 immediate benefits:
In order to have dbus spawn the processes via systemd, we need to make the following changes:
Item 3 is technically not necessary, but simply to play nice with how other distributions are doing it.
This PR implements items 1 to 3 for kdeconnect in a very non-reusable and naive way, but as mentioned this is simply proof of concept.
I have used kdeconnect for this experiment as there is nothing else that depends on this, but I have tried with both kwallet and baloo here using the same approach and they work fine. They just require a rebuild of the entire KDE environment.
cc: @ttuegel @FRidh @groxxda
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)