You are not logged in.

#1 2024-10-01 19:24:47

madderhatter
Member
Registered: 2023-04-24
Posts: 49

xdg-desktop-portal-hyprland inactive (dead) [SOLVED]

xdg-desktop-portal-hyprland inactive (dead)


EDIT:
## Added output of journalctl
## Added Nuclear Option output
## Generally cleaned up my initial messy question

EDIT 10/2
## Added .bashrc configs

systemctl status --user xdg-desktop-portal-hyprland

Returns:

○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; stat>
     Active: inactive (dead)

I've been fighting to turn this on

journalctl -u xdg-desktop-portal-hyprland

Returns

-- No entries --

Nuclear Option

#!/usr/bin/env bash
sleep 1
killall -e xdg-desktop-portal-hyprland
killall -e xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &

Returns:

xdg-desktop-portal-wlr: no process found
[1] 51292
[LOG] Initializing xdph...
[LOG] XDG_CURRENT_DESKTOP set to Hyprland
[LOG] Gathering exported interfaces
[LOG]  | Got interface: wl_seat (ver 9)
[LOG]  | Got interface: wl_data_device_manager (ver 3)
[LOG]  | Got interface: wl_compositor (ver 6)
[LOG]  | Got interface: wl_subcompositor (ver 1)
[LOG]  | Got interface: wl_shm (ver 1)
[LOG]  | Got interface: wp_viewporter (ver 1)
[LOG]  | Got interface: wp_tearing_control_manager_v1 (ver 1)
[LOG]  | Got interface: wp_fractional_scale_manager_v1 (ver 1)
[LOG]  | Got interface: zxdg_output_manager_v1 (ver 3)
[LOG]  | Got interface: wp_cursor_shape_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_idle_inhibit_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_relative_pointer_manager_v1 (ver 1)
[LOG]  | Got interface: zxdg_decoration_manager_v1 (ver 1)
[LOG]  | Got interface: wp_alpha_modifier_v1 (ver 1)
[LOG]  | Got interface: zwlr_gamma_control_manager_v1 (ver 1)
[LOG]  | Got interface: ext_foreign_toplevel_list_v1 (ver 1)
[LOG]  | Got interface: zwp_pointer_gestures_v1 (ver 3)
[LOG]  | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3)
[LOG] [toplevel] (activate) locks: 1
[LOG]  | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_text_input_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_text_input_manager_v3 (ver 1)
[LOG]  | Got interface: zwp_pointer_constraints_v1 (ver 1)
[LOG]  | Got interface: zwlr_output_power_manager_v1 (ver 1)
[LOG]  | Got interface: xdg_activation_v1 (ver 1)
[LOG]  | Got interface: ext_idle_notifier_v1 (ver 1)
[LOG]  | Got interface: ext_session_lock_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_input_method_manager_v2 (ver 1)
[LOG]  | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1)
[LOG]  | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2)
[LOG]  | Got interface: zwlr_output_manager_v1 (ver 4)
[LOG]  | Got interface: org_kde_kwin_server_decoration_manager (ver 1)
[LOG]  | Got interface: hyprland_focus_grab_manager_v1 (ver 1)
[LOG]  | Got interface: zwp_tablet_manager_v2 (ver 1)
[LOG]  | Got interface: zwlr_layer_shell_v1 (ver 5)
[LOG]  | Got interface: wp_presentation (ver 1)
[LOG]  | Got interface: xdg_wm_base (ver 6)
[LOG]  | Got interface: zwlr_data_control_manager_v1 (ver 2)
[LOG]  | Got interface: zwp_primary_selection_device_manager_v1 (ver 1)
[LOG]  | Got interface: xwayland_shell_v1 (ver 1)
[LOG]  | Got interface: zwlr_screencopy_manager_v1 (ver 3)
[LOG] [pipewire] connected
[LOG] [screencopy] init successful
[LOG]  | Got interface: hyprland_toplevel_export_manager_v1 (ver 2)
[LOG]  | Got interface: hyprland_global_shortcuts_manager_v1 (ver 1)
[LOG] [globalshortcuts] registered
[LOG]  | Got interface: xdg_dialog_v1 (ver 1)
[LOG]  | Got interface: wp_drm_lease_device_v1 (ver 1)
[LOG]  | Got interface: wp_linux_drm_syncobj_manager_v1 (ver 1)
[LOG]  | Got interface: wl_drm (ver 2)
[LOG]  | Got interface: zwp_linux_dmabuf_v1 (ver 5)
[LOG]  | Got interface: wl_output (ver 4)
[LOG]  | Got interface: wl_output (ver 4)
[LOG] [core] dmabufFeedbackMainDevice
[LOG] Found output name eDP-1
[LOG] Found output name HDMI-A-1
[LOG] [toplevel] Activated, bound to 1, toplevels: 2
[LOG] [screencopy] Registered for toplevel export
[LOG] [screenshot] init successful
[INFO] hyprpicker not found. We suggest to use hyprpicker for color picking to be less meh.
[2] 51298
[madderhatter@rtfm ~]$
(/usr/lib/xdg-desktop-portal:51298): xdg-desktop-portal-WARNING **: 18:50:25.202: No skeleton to export

What I've done so far:

I've installed xdg-desktop-portal-hyprland

in hyprland.conf

exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = ~/.config/hypr/xdg-portal-hyprland
exec-once = /usr/lib/xdg-desktop-portal-hyprland

ENVIRONMENT VARIABLE

env = XDG_CURRENT_DESKTOP, Hyprland
env = XDG_SESSION_TYPE, wayland
env = XDG_SESSION_DESKTOP, Hyprland

~/.bashrc

export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_DESKTOP=Hyprland

~/.config/hypr/xdg-portal-hyprland:

#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
logger 'killed all xdg-desktop'
sleep 1
/usr/libexec/xdg-desktop-portal-hyprland &
logger 'xdg-desktop-portal-hyprland started'
sleep 2
/usr/libexec/xdg-desktop-portal &
logger 'xdg-desktop-portal started'

And I start my sessions with:

dbus-run-session Hyprland

Things I am unsure of and are new to me:
The script xdg-portal-hyprland

I used chmod u+x to make it executable but I copied that from gentoo wiki. I'm only aware of scripts ending in .sh so maybe it's not loading that file correctly. (Friendly explanation here would be appreciated)

Even so I ran the script directly in terminal and the service is still dead.

Please help me get xdg-desktop-portal-hyprland.service turned on.

Thank You!

Last edited by madderhatter (2024-10-03 12:26:46)


We're all mad down here Georgie...

Offline

#2 2024-10-02 16:59:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,117

Re: xdg-desktop-portal-hyprland inactive (dead) [SOLVED]

Don't use dbus-run-session to start hyprland, it breaks session bus integration

Offline

#3 2024-10-02 22:29:43

madderhatter
Member
Registered: 2023-04-24
Posts: 49

Re: xdg-desktop-portal-hyprland inactive (dead) [SOLVED]

I rebooted, fired up Hyprland normal and the service is still dead.

I forgot to include my .bashrc in case that is an issue.

~/.bashrc

export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_DESKTOP=Hyprland

We're all mad down here Georgie...

Offline

#4 2024-10-03 02:19:00

madderhatter
Member
Registered: 2023-04-24
Posts: 49

Re: xdg-desktop-portal-hyprland inactive (dead) [SOLVED]

systemctl status --user xdg-desktop-portal-hyprland

Returns:

● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; stat>
     Active: active (running) since Wed 2024-10-02 17:25:31 CDT; 3h 46min ago
 Invocation: 939710fee30d4614bfa229bb182b6ee4
   Main PID: 1078 (xdg-desktop-por)
      Tasks: 5 (limit: 9164)
     Memory: 6.5M (peak: 7.4M)
        CPU: 343ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop>
             └─1078 /usr/lib/xdg-desktop-portal-hyprland

I just happened to check this because..... I don't know why but it occurred to me to check.
I did change the way I fire up Hyprland as per your recommendation but it was down after rebooting and doing so. I'm going to run it through a couple of tests first but if that goes well I'll mark this solved. My flabber is gasted.


We're all mad down here Georgie...

Offline

Board footer

Powered by FluxBB