Restore the code to trim % and everything that follows
This commit is contained in:
8
tools.go
8
tools.go
@@ -548,6 +548,14 @@ func savePinned() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func launch(command string, terminal bool) {
|
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 := ""
|
themeToPrepend := ""
|
||||||
// add "GTK_THEME=<default_gtk_theme>" environment variable
|
// add "GTK_THEME=<default_gtk_theme>" environment variable
|
||||||
if *forceTheme {
|
if *forceTheme {
|
||||||
|
|||||||
Reference in New Issue
Block a user