diff --git a/tools.go b/tools.go index 3f3ac4e..8a55d3d 100644 --- a/tools.go +++ b/tools.go @@ -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=" environment variable if *forceTheme {