mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-20 11:41:05 +03:00
Fix/printer printable area (#12433)
* fix: printer, printable area Signed-off-by: fufesou <linlong1266@gmail.com> * refact: windows, sc config RustDesk --start= delayed-auto Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -2885,6 +2885,7 @@ fn get_import_config(exe: &str) -> String {
|
||||
sc stop {app_name}
|
||||
sc delete {app_name}
|
||||
sc create {app_name} binpath= \"\\\"{exe}\\\" --import-config \\\"{config_path}\\\"\" start= auto DisplayName= \"{app_name} Service\"
|
||||
sc config {app_name} start= delayed-auto
|
||||
sc start {app_name}
|
||||
sc stop {app_name}
|
||||
sc delete {app_name}
|
||||
@@ -2906,6 +2907,7 @@ if exist \"%PROGRAMDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\{ap
|
||||
} else {
|
||||
format!("
|
||||
sc create {app_name} binpath= \"\\\"{exe}\\\" --service\" start= auto DisplayName= \"{app_name} Service\"
|
||||
sc config {app_name} start= delayed-auto
|
||||
sc start {app_name}
|
||||
",
|
||||
app_name = crate::get_app_name())
|
||||
|
||||
Reference in New Issue
Block a user