You are not logged in.
Hi all,
I've been trying to, on-and-off, get Hyprland to be able to screenshare sound and windows/screens. The primary way that I have historically done this on systemd based Linux distributions (OpenMandriva Lx) is via Vesktop.. This has also been an issue with things like attempting to stream or record video on things like OBS.
In Vesktop, when I click the screenshare button in `i3` on XLibre, it simply works now that I am able to launch `pipewire` properly on boot. However, when I switch to Hyprland, when I click the screenshare button on Vesktop, the program simply refuses to open/display the window to display the possible sources for sharing at all. Peculiar.
In an earlier post, I shared that I was able to get Pipewire to work on Hyprland, which from my understanding is what is relied upon for the sound portion of the share for compositors:
Hi all,
Wanted to record how I got Pipewire sound working in Hyprland on Devuan 6 Excalibur.
Within /home/$USER/.config/hypr/hyprland.conf:
... ################# ### AUTOSTART ### ################# # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: # pipewire on devuan openrc (after installing pipewire-audio) exec-once = wireplumber & exec-once = pipewire & exec-once = pipewire-pulse & ...Obviously, this is based on OP's initial post/script. Thanks OP.
---
NOTE: For whatever reason, screensharing isn't working. I've been trying to look at the pipewire article on the Gentoo wiki (I'm using OpenRC), and the screensharing article on the Hyprland wiki to see what I can experiment with. Previously on OpenMandriva Lx (systemd distro) where Pipewire was working OOTB. Now that I have Pipewire launching, I'm curious what exactly is missing here where I can't screenshare.
Pipewire article - Gentoo wiki wrote:Note:
Wayland systems use PipeWire to provide desktop portal functionality such as screen sharing and remote desktop.I think it might have to do with this "xdg-desktop-portals" thing.
Curious when Xlibre is working on my system again if that will still be the case.
I've been trying to further experiment, but I'm stuck.
In short, here are some relevant notes that could indicate the source of what the solution may be:
1. Created the scripts that the pipewire article on the Gentoo wiki suggests
2. Attempted to follow the GitHub Gist the Hyprland wiki (linked above) suggested
3. One output I do get whenever I stop Hyprland and get booted back into the TTY is the following:
dconf-WARNING **: 12:34:41:884: failed to commit changes to dconf: Cannot autolaunch without X11 $DISPLAYOne thing I've seen suggested on the net a lot is to do something like the following:
export DISPLAY=:0I do not see a change as a result of this, at least from my understanding.
"An idiot admires complexity, a genius admires simplicity." - Terry A. Davis
Offline
Somehow this morning, randomly by happenstance, cobbled together a set of commands that enables the user to share the screen in Vesktop on Hyprland in Devaun on top of the existing configurations elaborated on in the original post. Sharing this solution with the community in case it's helpful for others:
Setting these variables ensure that Hyprland and Wayland-based applications are properly identified and can function correctly on your Devuan system.
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export MOZ_ENABLE_WAYLAND=1The dbus-run-session command is used to start a new D-Bus session, which is necessary for Hyprland to communicate with other system services. The -- separates the dbus-run-session command from the hyprland command, ensuring that Hyprland is executed as the main process:
⚠️IMPORTANT
Ensure you have hyprland-guiutils installed with:apt install hyprland-guiutils
Launch Hyprland with:
dbus-run-session start-hyprlandBy including these commands in your startup or session configuration, you should be able to run Hyprland on your Devuan system and share the screen as desired.
Launch Vesktop (I have the .deb version of the package installed), enter a voice chat, then click Share Your Screen. When the screensharing popup window appears, check Allow a restore token, then click the desired source to stream from.
Can't seem to locate where the information found was sourced from; currently the commentary posted probably isn't the most correct regarding commands or programs do what. Please feel free to correct comment corrections or point newer users to the right direction for any mistakes made causatively in this post.
Happy to help!
Last edited by wolfdaemon (Today 17:36:53)
"An idiot admires complexity, a genius admires simplicity." - Terry A. Davis
Offline