Skip to content

Commit

Permalink
fix: set uid by self when not use ddm
Browse files Browse the repository at this point in the history
log: fix wallpaper not work in lightdm
  • Loading branch information
wineee authored and Groveer committed Jun 24, 2024
1 parent 8902814 commit 4ccb73c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ QuickPersonalizationManager::QuickPersonalizationManager(QObject *parent)
}

PERSONALIZATION_MANAGER = this;

// When not use ddm, set uid by self
if (qgetenv("XDG_SESSION_DESKTOP") == "treeland-user") {
setUserId(getgid());
}
}

WServerInterface *QuickPersonalizationManager::create()
Expand Down

0 comments on commit 4ccb73c

Please sign in to comment.