New answers tagged

1

The answer is to use sd_bus_match_signal(3) to set up a filter for events. You listen for events by doing one of: sd_bus_wait(3) to block until events happen and sd_bus_process(3) to handle them. Connect sd-bus to the sd-event loop with sd_bus_attach_event(3) (you might need to set up the sd-event loop too). Use sd_bus_get_fd(3), sd_bus_get_events(3) and ...


0

I just disabled and masked firewalld and went back to IPTables. No problems after that. I had to change fail2ban to work with IPTables by commenting out : # banaction=firewallcmd-ipset in /etc/fail2ban/jail.d/00-firewalld.conf - Do not delete the file. Then I setup a new service to save and restore IPTables on shutdown and reboot as I describe here: ...


0

The problem was that the new xinit is incompatible with my old .xinitrc file. I added the content of .xinitrc to .profile and everything worked again.


0

In org.freedesktop.systemd1.policy for : action id="org.freedesktop.systemd1.manage-units" action id="org.freedesktop.systemd1.manage-unit-files" try to replace the line <allow_active>auth_admin_keep</allow_active> by : <allow_active>yes</allow_active>


1

As per #don_crissti answers, I implemented, This solution gives to interface name and method and signals information import dbus from xml.etree import ElementTree bus = dbus.SystemBus() def busNames(): return [ name for name in bus.list_names() if not name.startswith(":") ] def pathNames(service,object_path="/",paths=None,serviceDict=None): if ...


0

This may be a stupid answer ... but, gnome-keyring need access to a X11 session, at least to prompt your for the master key. So, it's just impossible to make it run , by design ... isn't it ? EDIT: Maybe not that impossible. See this post, looks similar to your problem:


2

There are various command-line tools to make dbus calls; systemd comes with one called busctl. So you can call StartTransientUnit from the command line. The command The syntax is positively annoying, but it looks like this (for one process id, 14460): busctl call --user org.freedesktop.systemd1 /org/freedesktop/systemd1 \ org.freedesktop.systemd1....


Top 50 recent answers are included