remove startup elevation, update impersonate_system

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-10-30 19:42:33 +08:00
parent 7dec4f8a04
commit cc30b9f8a5
4 changed files with 1 additions and 21 deletions

View File

@@ -85,11 +85,6 @@ pub fn core_main() -> Option<Vec<String>> {
.ok();
}
}
#[cfg(windows)]
#[cfg(not(debug_assertions))]
if !crate::platform::is_installed() && args.is_empty() {
crate::platform::elevate_or_run_as_system(is_setup, _is_elevate, _is_run_as_system);
}
if args.is_empty() {
std::thread::spawn(move || crate::start_server(false));
} else {

View File

@@ -1242,9 +1242,3 @@ function refreshCurrentUser() {
function getHttpHeaders() {
return "Authorization: Bearer " + handler.get_local_option("access_token");
}
$(body).timer(1000, function check_elevation(){
if (is_win && handler.is_release() && !handler.is_installed() && !handler.is_root()) {
msgbox("custom-elevation-nocancel", "Prompt", "elevation_prompt");
}
});