Name: lxqt-desktop-demo Version: 1.0 Release: 5%{?dist} Summary: LXQt Desktop Demo Package License: GPLv2+ URL: https://lxqt.org/ BuildArch: noarch Requires: glib2 >= 2.80 Requires: lxqt-about Requires: lxqt-session Requires: lxqt-panel Requires: lxqt-config Requires: lxqt-policykit Requires: lxqt-qtplugin Requires: lxqt-notificationd Requires: lxqt-runner Requires: lxqt-archiver Requires: lxqt-themes Requires: qterminal Requires: pcmanfm-qt Requires: lximage-qt Requires: xdg-desktop-portal-lxqt Requires: libdbusmenu-lxqt Requires: openbox Requires: sddm Requires: tigervnc-server Requires: kvantum Requires: xrdp Requires: firefox Requires: vim-X11 Requires: xcb-util Requires: xcb-util-image Requires: xcb-util-keysyms Requires: xcb-util-renderutil Requires: xcb-util-wm Requires: xcb-util-cursor Requires: pulseaudio Requires: pavucontrol Requires: xscreensaver Requires: pipewire-utils Requires: pipewire-plugin-jack Requires: pipewire-module-x11 Requires: pipewire-media-session Requires: pipewire-alsa Requires: jack-audio-connection-kit Recommends: claws-mail Recommends: google-noto-cjk-fonts Recommends: google-noto-sans-cjk-sc-fonts Recommends: google-noto-sans-mono-cjk-sc-fonts Recommends: google-noto-sans-sc-fonts Recommends: google-noto-serif-cjk-sc-fonts Recommends: google-noto-serif-sc-fonts Recommends: libreoffice Recommends: mousepad Recommends: xournal Recommends: strawberry Recommends: abiword Recommends: mypaint Recommends: materia-kde Recommends: vlc %description This package installs the LXQt desktop environment along with several essential packages, and sets up the VNC server to use LXQt with Openbox as the window manager. %prep %build %install mkdir -p %{buildroot}%{_sysconfdir}/lxqt-desktop-demo cat > %{buildroot}%{_sysconfdir}/lxqt-desktop-demo/xstartup << 'EOF' #!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS exec openbox-session & exec startlxqt & EOF chmod +x %{buildroot}%{_sysconfdir}/lxqt-desktop-demo/xstartup %post for userdir in /home/*; do mkdir -p "$userdir/.vnc" cp %{_sysconfdir}/lxqt-desktop-demo/xstartup $userdir/.vnc/xstartup chmod 755 $userdir/.vnc/xstartup chown -R $(basename $userdir):$(basename $userdir) $userdir/.vnc done %files %config(noreplace) %{_sysconfdir}/lxqt-desktop-demo/xstartup %changelog * Thu Jun 27 2024 Yonghang Wang - 1.0-1 - Initial package