hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Service can't find hyprland-share-picker #20

Closed KrolixW closed 1 year ago

KrolixW commented 1 year ago

Service can't find hyprland-share-picker, but it is installed. If I launch portal using nuclear option from hyprland wiki, everything works as expected

● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: active (running) since Fri 2023-02-03 19:02:54 EET; 33s ago
   Main PID: 1315 (xdg-desktop-por)
      Tasks: 9 (limit: 18871)
     Memory: 20.4M
        CPU: 132ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop-portal-hyprland.service
             └─1315 /usr/libexec/xdg-desktop-portal-hyprland

лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[3359]: sh: line 1: hyprland-share-picker: command not found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[3365]: sh: line 1: hyprland-share-picker: command not found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[3366]: sh: line 1: hyprland-share-picker: command not found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[3377]: sh: line 1: hyprland-share-picker: command not found
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[1315]: 2023/02/03 19:03:18 [ERROR] - wlroots: no output / window found
vaxerski commented 1 year ago

make sure /usr/bin is in the $PATH.

KrolixW commented 1 year ago

make sure /usr/bin is in the $PATH.

It is there

vaxerski commented 1 year ago
лют 03 19:03:18 AlexNotebookL xdg-desktop-portal-hyprland[3366]: sh: line 1: hyprland-share-picker: command not found

Your system disagrees.

KrolixW commented 1 year ago

Well it certainly is in there. PATH=/home/krolix/bin:/usr/local/bin:/usr/share/archcraft/scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/krolix/.local/bin:/home/krolix/.local/share/cargo/bin

As i said previously, issue only occurs via service. If i manually restart xdph everything works fine.

vaxerski commented 1 year ago

the services might run as a different user, or might also run not sourcing your .bashrc.