20
849
Fork
You've already forked fuzzel
83

Return a success exit code if the user closed the launcher #98

Closed
opened 2022年02月04日 20:52:47 +01:00 by tinywrkb · 2 comments

I'm not sure if this is a bug or a request feature, and I haven't went through the code, and try to understand if there's something wrong on my side the gets me the error exit code.

Anyway, the issue that I'm hitting is that I'm getting a non-zero return code (1) from fuzzel after exiting the launcher without trying to select an app and launch it.

This creates two problems for me.

  1. I'm using systemd-run to run fuzzel and the lauched apps under a different slice, and the the error exit code shows up as a failure in systemd's log.

  2. In my sway config, I want to take into account that systemd-run might fail running fuzzel, so I'm adding a fallback to run fuzzel directly like this

bindsym $mod+Shift+d exec --no-startup-id systemd-run --user --slice app.slice --quiet --no-block --collect fuzzel-launch || fuzzel-launch

but due to the error exit code, Sway is launching fuzzel twice.

I'm not sure if this is a bug or a request feature, and I haven't went through the code, and try to understand if there's something wrong on my side the gets me the error exit code. Anyway, the issue that I'm hitting is that I'm getting a non-zero return code (1) from fuzzel after exiting the launcher without trying to select an app and launch it. This creates two problems for me. 1. I'm using systemd-run to run fuzzel and the lauched apps under a different slice, and the the error exit code shows up as a failure in systemd's log. 2. In my sway config, I want to take into account that systemd-run might fail running fuzzel, so I'm adding a fallback to run fuzzel directly like this ``` bindsym $mod+Shift+d exec --no-startup-id systemd-run --user --slice app.slice --quiet --no-block --collect fuzzel-launch || fuzzel-launch ``` but due to the error exit code, Sway is launching fuzzel twice.
tinywrkb changed title from (削除) Return an success exit code if the user closed the launcher (削除ここまで) to Return a success exit code if the user closed the launcher 2022年02月04日 20:52:58 +01:00
Owner
Copy link

I believe this was done to be able to tell the difference between something was launched and something was not launched, in scripts.

Can't quite remember however.

In any case, this is probably only useful in dmenu mode. In "normal" mode, it's probably fine to exit with code 0.

I believe this was done to be able to tell the difference between something was launched and something was not launched, in scripts. Can't quite remember however. In any case, this is probably only useful in dmenu mode. In "normal" mode, it's probably fine to exit with code 0.

It would be great if this would be limited to dmenu mode.

It would be great if this would be limited to dmenu mode.
Sign in to join this conversation.
No Branch/Tag specified
master
gnome-support
releases/1.14
issue-319-window-switching
issue-561-nord-theme-only
resvg-filtering-take-2
resvg-filtering
releases/1.13
rehanzo-dont-ignore-execute-648
keybinds-overwrite
issue-561-refresh-theme
ci-automated-testing
reenable-legacy-icons
releases/1.12
test-coverage-for-fzf-caching
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.14.1
1.14.0
1.13.1
1.13.0
1.12.0
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/fuzzel#98
Reference in a new issue
dnkl/fuzzel
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?