rthomsen / kcmsystemd

A systemd control module for KDE
GNU General Public License v3.0
53 stars 5 forks source link

not user unit #17

Closed papajoker closed 9 years ago

papajoker commented 9 years ago

Hi, kcmsystemd does not run with user units ( systemctl --user )

rthomsen commented 9 years ago

I have no experience in using user units in systemd. Can you explain in more detail what you mean?

papajoker commented 9 years ago

just the same but for one user

systemctl --user enable notify.timer
systemctl --user status notify
systemctl --user list-timers

all files are in ~/config/ and not in /etc/

~/.config/systemd/user/timers.target.wants/notify.timer
~/.config/systemd/user/notify.timer
~/.config/systemd/user/notify.service
~/.local/bin/notify.sh

after systemctl --user enable ... , the service is not present in kcmsystemd :(

a-detiste commented 9 years ago

Nice guide: https://wiki.archlinux.org/index.php/Systemd/User

rthomsen commented 9 years ago

It seems it would be appropriate to add an additional tab with user units. However, there doesn't seem to be a dbus api for the user instance of systemd. Will have to investigate further...

a-detiste commented 9 years ago

qdbusviewerdebug tool show me two tabs with Session busand System bus

a-detiste commented 9 years ago

https://qt.gitorious.org/qt/qttools/source/54027185840ac15b1796903c75cddf15934d9a66:src/qdbus/qdbusviewer/main.cpp#L61-63

QDBusViewer *sessionBusViewer = new QDBusViewer(QDBusConnection::sessionBus());

rthomsen commented 9 years ago

The session bus does not contain a systemd service on my system...

rthomsen commented 9 years ago

Handling of user units has now been implemented. Can you test current master and see if it works correctly on your system?

a-detiste commented 9 years ago

I've tested yesterday, it works very nice!

I can't test everything because I have white-on-white tooltips; but that's a bug outside of kcmsystemd.

Notes:

rthomsen commented 9 years ago

Thanks for testing. I'm aware of user timers. I'm thinking about how to best implement that. They could be added to the same QTableView as the system timers or in a separate one... I was thinking it's best to add them to the same to avoid excessive tabs and then create an additional column stating whether it's a system or user timer.

a-detiste commented 9 years ago

Yeah, it's best to keep all timers together, maybe some stock icon is enough as a visual clue to diffenrentiate.

rthomsen commented 9 years ago

This has now been implemented...