Skip to content

Commit

Permalink
fix: wrong appname when dmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Jul 18, 2024
1 parent 57595c7 commit dc08903
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func main() {
switch args[0] {
case "-n", "--new":
forceNew = true
appName = fmt.Sprintf("%s-%d", appName, time.Now().Unix())
case "-c", "--config":
case "-s", "--style":
case "-m", "--modules":
Expand Down Expand Up @@ -77,6 +76,10 @@ func main() {
}
}

if forceNew {
appName = fmt.Sprintf("%s-%d", appName, time.Now().Unix())
}

if forceNew && state.IsService {
log.Println("new instance is not supported with service mode")
return
Expand Down

0 comments on commit dc08903

Please sign in to comment.