You are not logged in.

#1 2013-03-09 17:52:48

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

[SOLVED] Run kded as a separate (systemd?) service

Hi.
I'm currently trying to enrich wmii session with some kde features.

For example to allow kde to manage my keyboard I can do

$ kded4
$ qdbus org.kde.kded /kded loadModule keyboard

The issue is that I can't start kded on login. I've tried both .xinitrc and systemd way. The outcome is always the same: kded4 won't work for the first time. There are 4 processes of kded4 and none of them responds to dbus calls. However, killing out all of its processes and starting again results in kded4 behaving correctly.

So, here what I have currently

systemd service

[Unit]
Description=KDE daemon

[Service]
ExecStart=/usr/bin/kded4

[Install]
WantedBy=workspace.target

After an attempt to start

$ systemctl --user status kded
kded.service - KDE daemon
          Loaded: loaded (/home/edio/.config/systemd/user/kded.service; disabled)
          Active: active (running) since Sat 2013-03-09 19:39:40 EET; 1s ago
        Main PID: 25887 (kded4)
          CGroup: name=systemd:/user/edio/4/systemd-25706/kded.service
                  ├─25887 /usr/bin/kded4
                  ├─25895 /usr/bin/kded4
                  ├─25900 /usr/bin/kdeinit4 --suicide
                  ├─25901 /usr/bin/kdeinit4 --suicide
                  ├─25902 kdeinit4: klauncher [kdeinit] --fd=8
                  └─25904 kdeinit4: kded4 [kdeinit]
Mar 09 19:39:40 xi systemd[25706]: Starting KDE daemon...
Mar 09 19:39:40 xi systemd[25706]: Started KDE daemon.
Mar 09 19:39:40 xi kded4[25887]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Mar 09 19:39:40 xi kded4[25887]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Mar 09 19:39:40 xi kded4[25887]: QGtkStyle was unable to detect the current GTK+ theme.
Mar 09 19:39:40 xi kded4[25887]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Mar 09 19:39:40 xi kded4[25887]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Mar 09 19:39:40 xi kded4[25887]: KDE Daemon (kded) already running.
Mar 09 19:39:40 xi kded4[25887]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

Has anyone tried that already? Any ideas, how to start kded4?

Thanks in advance.

Last edited by eDio (2013-03-10 21:11:00)

Offline

#2 2013-03-10 20:58:39

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Run kded as a separate (systemd?) service

I finally managed this to work.
Results of this are available on github.

Let me know please, if you think this info is worth a wiki page or a dedicated topic.

https://github.com/edio/systemd-kdemodules

Offline

#3 2013-03-10 21:34:50

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [SOLVED] Run kded as a separate (systemd?) service

Offline

Board footer

Powered by FluxBB