Skip to content

Commit

Permalink
dbus: Fix issue hyprwm#114 (hyprwm#115)
Browse files Browse the repository at this point in the history
The line hyprwm#249 calls system bus by default, dbus will deny this request,
then we need to call session bus instead.
  • Loading branch information
NgoHuy authored Oct 12, 2023
1 parent 3606b35 commit 60af24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PortalManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void CPortalManager::init() {
m_iPID = getpid();

try {
m_pConnection = sdbus::createDefaultBusConnection("org.freedesktop.impl.portal.desktop.hyprland");
m_pConnection = sdbus::createSessionBusConnection("org.freedesktop.impl.portal.desktop.hyprland");
} catch (std::exception& e) {
Debug::log(CRIT, "Couldn't create the dbus connection ({})", e.what());
exit(1);
Expand Down

0 comments on commit 60af24a

Please sign in to comment.