Skip to content

Commit ccffc22

Browse files
committed
New package: gpu-screen-recorder-ui-1.10.7
1 parent 0b110d4 commit ccffc22

4 files changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
GPU Screen Recorder UI (MGL++) - Void Linux Notes
2+
====================================
3+
1: High-performance (KMS) recording:
4+
KMS recording may require additional privileges.
5+
See /usr/share/doc/gpu-screen-recorder/README.voidlinux for details.
6+
7+
2. Global Hotkeys and Virtual Input:
8+
To use global hotkeys and virtual keyboard features, your user must
9+
have permission to access input devices and uinput.
10+
11+
Step A: Add your user to the 'input' group:
12+
# usermod -aG input <your_username>
13+
14+
Step B:
15+
(Recommended) Create a udev rule for uinput:
16+
Create a file /etc/udev/rules.d/99-uinput.rules with:
17+
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
18+
19+
After these steps, REBOOT or reload rules and re-login:
20+
# udevadm control --reload-rules && udevadm trigger
21+
NOTE: Adding a user to the 'input' group allows any application running under that user
22+
to read all keystrokes. This is a trade-off for global hotkey support.
23+
24+
or
25+
26+
Set SUID bit to gsr-global-hotkeys library:
27+
# chmod 4755 /usr/bin/gsr-global-hotkeys
28+
WARNING: This allows the binary to run with full root privileges.
29+
This approach significantly increases the attack surface and
30+
should only be used if you fully understand the risks.
31+
32+
No privilege escalation is performed automatically by the package.
33+
It is up to the system administrator to choose the appropriate
34+
configuration.
35+
36+
3. Wayland Support:
37+
- For Hyprland: Ensure 'gsr-hyprland-helper' is in your PATH.
38+
- For KDE Plasma: Ensure 'gsr-kwin-helper' is in your PATH.
39+
40+
4. Autostart:
41+
- The "Autostart" button in the UI is hardcoded for systemd and will not work.
42+
To enable daemon on startup, manually add "gsr-ui launch-daemon"
43+
to your desktop environment's autostart settings or copy the provided
44+
desktop file:
45+
# cp /usr/share/applications/gsr-ui-daemon.desktop ~/.config/autostart/
46+
or
47+
# cp /usr/share/applications/gsr-ui-daemon.desktop /etc/xdg/autostart/
48+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Desktop Entry]
2+
Name=GPU Screen Recorder UI (Autostart)
3+
Comment=Comment=Start the hotkey and overlay daemon for GSR
4+
Exec=gsr-ui launch-daemon
5+
Icon=gpu-screen-recorder
6+
Type=Application
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Template file for 'gpu-screen-recorder-ui'
2+
pkgname=gpu-screen-recorder-ui
3+
version=1.10.7
4+
revision=1
5+
build_style=meson
6+
hostmakedepends="pkg-config meson desktop-file-utils wayland-devel"
7+
makedepends="libX11-devel libXrandr-devel libXrender-devel libXcomposite-devel
8+
libXfixes-devel libXext-devel libXi-devel libXcursor-devel libglvnd-devel
9+
pulseaudio-devel libdrm-devel dbus-devel libcap-devel wayland-devel"
10+
depends="gpu-screen-recorder gpu-screen-recorder-notification"
11+
short_desc="ShadowPlay-like UI for gpu-screen-recorder"
12+
maintainer="cherrybtw <nonopenoid123456789@gmail.com>"
13+
license="GPL-3.0-only, OFL-1.1, CC-BY-SA-3.0, CC0-1.0, CC-BY-4.0"
14+
homepage="https://git.dec05eba.com/gpu-screen-recorder-ui/about"
15+
distfiles="https://dec05eba.com/snapshot/gpu-screen-recorder-ui.git.${version}.tar.gz"
16+
checksum=8644045c0e5786552aaa747dde8c0441dc01d16783971fb2c22aa47f08a9470e
17+
18+
pre_build() {
19+
vsed -i \
20+
-e 's/struct stat64 /struct stat /g' \
21+
-e 's/fstat64(/fstat(/g' \
22+
src/ClipboardFile.cpp
23+
24+
vsed -i '1i#include <unistd.h>' \
25+
src/GlobalHotkeys/GlobalHotkeysLinux.cpp \
26+
src/main.cpp \
27+
src/Overlay.cpp
28+
29+
vsed -i '1i#include <limits.h>' \
30+
src/gui/FileChooser.cpp
31+
}
32+
33+
post_patch() {
34+
vsed -i "s/meson.add_install_script/# meson.add_install_script/" meson.build
35+
}
36+
37+
post_install() {
38+
vdoc ${FILESDIR}/README.voidlinux
39+
vinstall ${FILESDIR}/gsr-ui-daemon.desktop 644 /usr/share/applications/
40+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
site="https://git.dec05eba.com/gpu-screen-recorder-ui/refs/"
2+
pattern="tag/\?h=\K[\d.]+"

0 commit comments

Comments
 (0)