mirror of
				https://github.com/yuezk/GlobalProtect-openconnect.git
				synced 2025-05-20 07:26:58 -04:00 
			
		
		
		
	feat: support drag and remove title bar on KDE
This commit is contained in:
		| @@ -44,6 +44,18 @@ fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> { | ||||
|     }); | ||||
|  | ||||
|     app.manage(client); | ||||
|  | ||||
|     match std::env::var("XDG_CURRENT_DESKTOP") { | ||||
|         Ok(desktop) => { | ||||
|             if desktop == "KDE" { | ||||
|                 if let Some(main_window) = app.get_window("main") { | ||||
|                     let _ = main_window.set_decorations(false); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         Err(_) => (), | ||||
|     } | ||||
|  | ||||
|     Ok(()) | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -68,11 +68,13 @@ | ||||
|     }, | ||||
|     "windows": [ | ||||
|       { | ||||
|         "title": "GlobalProtect", | ||||
|         "label": "main", | ||||
|         "fullscreen": false, | ||||
|         "width": 260, | ||||
|         "height": 360, | ||||
|         "resizable": false, | ||||
|         "title": "GlobalProtect", | ||||
|         "width": 260 | ||||
|         "fileDropEnabled": false | ||||
|       } | ||||
|     ] | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user