Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 747 Bytes
local run = require("runonce").run
local spawn = require("awful.util").spawn
if rc.conf.dbus and rc.conf.phone then
spawn "kdeinit4" -- start kded dbus service
if luadbus and dbus.call_method then
luadbus.call("loadModule", { args = {"s", "kdeconnect"},
bus = 'session',
path = '/kded',
interface = 'org.kde.kded',
destination = 'org.kde.kded',
})
else
spawn "dbus-send --session --print-reply --dest='org.kde.kded' /kded org.kde.kded.loadModule string:kdeconnect"
end
end
if rc.conf.autostart and type(rc.conf.autostart) == "table" then
for _, prg in ipairs(rc.conf.autostart) do
print("autostart: run " .. prg)
run(prg)
end
end