Skip to content

Commit

Permalink
Merge pull request #3808 from Nambers/master
Browse files Browse the repository at this point in the history
Using 'auto' instead of 'self' in backlight module
  • Loading branch information
Alexays authored Dec 7, 2024
2 parents 347c442 + 6bac784 commit e959f1d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/util/backlight_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ BacklightBackend::BacklightBackend(std::chrono::milliseconds interval,
// Connect to the login interface
login_proxy_ = Gio::DBus::Proxy::create_for_bus_sync(
Gio::DBus::BusType::BUS_TYPE_SYSTEM, "org.freedesktop.login1",
"/org/freedesktop/login1/session/self", "org.freedesktop.login1.Session");
"/org/freedesktop/login1/session/auto", "org.freedesktop.login1.Session");

if (!login_proxy_) {
login_proxy_ = Gio::DBus::Proxy::create_for_bus_sync(
Gio::DBus::BusType::BUS_TYPE_SYSTEM, "org.freedesktop.login1",
"/org/freedesktop/login1/session/self", "org.freedesktop.login1.Session");
}

udev_thread_ = [this] {
std::unique_ptr<udev, UdevDeleter> udev{udev_new()};
Expand Down

0 comments on commit e959f1d

Please sign in to comment.