mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 17:59:47 +01:00
The line #249 calls system bus by default, dbus will deny this request, then we need to call session bus instead.
This commit is contained in:
parent
3606b35a07
commit
60af24a70d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue