Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deepin-devicemanager/src/Page/PageDriverControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void PageDriverControl::installDriverLogical()
} else if (1 == curIndex) {
// 驱动安装之前需要先提权
Authority::Result result = Authority::instance()->checkAuthorizationSync("com.deepin.deepin-devicemanager.checkAuthentication",
UnixProcessSubject(getpid()),
SystemBusNameSubject(QDBusConnection::sessionBus().baseService()),
Authority::AllowUserInteraction);
if (result != Authority::Yes) {
return;
Expand Down
2 changes: 1 addition & 1 deletion deepin-devicemanager/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char *argv[])
}
#ifndef DISABLE_POLKIT
Authority::Result result = Authority::instance()->checkAuthorizationSync("com.deepin.deepin-devicemanager.checkAuthentication",
UnixProcessSubject(getpid()),
SystemBusNameSubject(QDBusConnection::sessionBus().baseService()),
Authority::AllowUserInteraction);
if (result != Authority::Yes)
return 0;
Expand Down