hyprwm / xdg-desktop-portal-hyprland

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

the service does not start #33

Closed DartMitai closed 1 year ago

DartMitai commented 1 year ago

Debian 12 minimal install not DE nvidia 1050Ti

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-03-12 09:34:52 +05; 17min ago
TriggeredBy: ● pipewire.socket
   Main PID: 609 (pipewire)
      Tasks: 2 (limit: 14040)
     Memory: 5.9M
        CPU: 63ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─609 /usr/bin/pipewire

мар 12 09:34:52 dart systemd[602]: Started pipewire.service - PipeWire Multimedia Service.
мар 12 09:34:53 dart pipewire[609]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
мар 12 09:34:53 dart pipewire[609]: mod.rt: found session bus but no portal

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-03-12 09:34:52 +05; 17min ago
   Main PID: 610 (wireplumber)
      Tasks: 4 (limit: 14040)
     Memory: 37.3M
        CPU: 338ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─610 /usr/bin/wireplumber

мар 12 09:34:52 dart systemd[602]: Started wireplumber.service - Multimedia Service Session Manager.
мар 12 09:34:53 dart wireplumber[610]: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
мар 12 09:34:53 dart wireplumber[610]: found session bus but no portal
мар 12 09:34:56 dart wireplumber[610]: Failed to set scheduler settings: Операция не позволена
мар 12 09:34:56 dart wireplumber[610]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
мар 12 09:34:56 dart wireplumber[610]: PipeWire's libcamera SPA missing or broken. libcamera not supported.
мар 12 09:34:56 dart wireplumber[610]: SPA handle 'api.bluez5.enum.dbus' could not be loaded; is it installed?
мар 12 09:34:56 dart wireplumber[610]: PipeWire's BlueZ SPA missing or broken. Bluetooth not supported.
systemctl --user status xdg-desktop-portal-hyprland
○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: inactive (dead)

in the directory /usr/lib/systemd/user/ two files xdg-desktop-autostart.target xdg-desktop-portal-hyprland.service and in the directory /usr/libexec xdg-desktop-portal-hyprland*

my .bashrc

#Hyprland
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_DESKTOP=Hyprland
export XCURSOR_THEME=Bibata-Modern-Classic
export XCURSOR_SIZE=24
# Nvidia
export LIBVA_DRIVER_NAME=nvidia
export XDG_SESSION_TYPE=wayland
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
# Qt
export QT_AUTO_SCREEN_FACTOR=1
export QT_QPA_PLATFORM="wayland;xcb"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt5ct

[ "$(tty)" = "/dev/tty1" ] && exec Hyprland

config hyprland

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = HDMI-A-1, 1920x1080@60, 0x0, 1

# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
exec-once = hyprpaper

# Some default env vars.
env = XCURSOR_SIZE,24

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = us,ru
    kb_variant =
    kb_model =
    kb_options = grp:alt_shift_toggle
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 10
    border_size = 2
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    layout = dwindle
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 10
    blur = yes
    blur_size = 3
    blur_passes = 1
    blur_new_optimizations = on

    drop_shadow = yes
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

animations {
    enabled = yes

    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
    new_is_master = true
}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = off
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic mouse V1 {
    sensitivity = -0.5
}

# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more

# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, foot
bind = $mainMod, C, killactive, 
bind = $mainMod, M, exit, 
bind = $mainMod, E, exec, nautilus
bind = $mainMod, V, togglefloating, 
bind = $mainMod, R, exec, rofi -show drun -theme ~/.config/rofi/global/rofi.rasi
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
vaxerski commented 1 year ago

I don't think it's supposed to start - xdg-desktop-portal should just pull some stuff from it.

DartMitai commented 1 year ago

Я не думаю, что она должна запускаться - xdg-desktop-portal должен просто извлечь из нее некоторые данные.

I apologize to you, my knowledge of linux is very superficial, I am an ordinary user, Hyprland documentation says Should start automatically. and docs github says Although should start automatically, consult the Hyprland wiki if my configuration files are correct, what should I do in the future to launch xdg-desktop-portal-hyprland? I'm sorry again I didn't have this package xdg-desktop-portal, after installing it everything fell into place, please excuse me

systemctl --user status xdg-desktop-portal-hyprland
● 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 Sun 2023-03-12 21:36:52 +05; 3min 43s ago
   Main PID: 860 (xdg-desktop-por)
      Tasks: 2 (limit: 14040)
     Memory: 1.6M
        CPU: 14ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop-portal-hyprland.service
             └─860 /usr/libexec/xdg-desktop-portal-hyprland

мар 12 21:36:52 dart systemd[618]: Starting xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)...
мар 12 21:36:52 dart systemd[618]: Started xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation).

although abs can't record video just a black screen...