Fix: Improve XDP(s) processes termination. (#241)

Improve `xdg-desktop-portals` processes termination since
`xdg-desktop-portals` is 19 characters long.

From `killall(1)` man page:

> -e, --exact
>
> Require an exact match for very long names. If a command name is longer
> than 15 characters, the full name may be unavailable (i.e. it is swapped
> out). In this case, `killall` will kill everything that matches within
> the first 15 characters. With -e, such entries are skipped. `killall`
> prints a message for each skipped entry if -v is specified in addition
> to -e.
This commit is contained in:
Juan Giordana 2023-06-04 05:47:08 -03:00 committed by GitHub
parent 882c65e3a0
commit d8ea343e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ In such cases, a script like this:
```bash
#!/bin/bash
sleep 4
killall xdg-desktop-portal-wlr
killall -e xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-wlr &
sleep 4

View File

@ -106,8 +106,8 @@ For a nuclear option, you can use this script and `exec-once` it:
```sh
#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
killall -e xdg-desktop-portal-hyprland
killall -e xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2