Restore the code to trim % and everything that follows

This commit is contained in:
gouvinb
2023-11-09 15:49:50 +01:00
parent 954a6ba9c9
commit 57d130ca51

View File

@@ -548,6 +548,14 @@ func savePinned() {
}
func launch(command string, terminal bool) {
// trim % and everything afterwards
if strings.Contains(command, "%") {
cutAt := strings.Index(command, "%")
if cutAt != -1 {
command = command[:cutAt-1]
}
}
themeToPrepend := ""
// add "GTK_THEME=<default_gtk_theme>" environment variable
if *forceTheme {