diff --git a/srcpkgs/persepolis/files/README.voidlinux b/srcpkgs/persepolis/files/README.voidlinux index 59a3e89304e..a86d8667c1a 100644 --- a/srcpkgs/persepolis/files/README.voidlinux +++ b/srcpkgs/persepolis/files/README.voidlinux @@ -4,5 +4,3 @@ For Youtube downloads: yt-dlp For audio mixing: ffmpeg For audio notifications: sound-theme-freedesktop For desktop notifications: python3-dasbus (not in void repository) -For desktop notifications: libnotify -For changing process names: python3-setproctitle diff --git a/srcpkgs/persepolis/patches/Handle-missing-XDG_CURRENT_DESKTOP-env-var.patch b/srcpkgs/persepolis/patches/Handle-missing-XDG_CURRENT_DESKTOP-env-var.patch new file mode 100644 index 00000000000..789e7330035 --- /dev/null +++ b/srcpkgs/persepolis/patches/Handle-missing-XDG_CURRENT_DESKTOP-env-var.patch @@ -0,0 +1,34 @@ +From d295a72f7bf03839f13067e3d9689bb6d33e8f65 Mon Sep 17 00:00:00 2001 +From: Komeil Parseh +Date: Wed, 16 Jul 2025 15:51:30 +0330 +Subject: [PATCH] Handle missing XDG_CURRENT_DESKTOP env var + +--- + persepolis/scripts/useful_tools.py | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/persepolis/scripts/useful_tools.py b/persepolis/scripts/useful_tools.py +index 898ec0c..04a152c 100644 +--- a/persepolis/scripts/useful_tools.py ++++ b/persepolis/scripts/useful_tools.py +@@ -86,8 +86,15 @@ def osAndDesktopEnvironment(): + desktop_env = None + if os_type in OS.UNIX_LIKE: + # find desktop environment('KDE', 'GNOME', ...) +- desktop_env = os.environ.get('XDG_CURRENT_DESKTOP').lower() +- ++ xdg_desktop = os.environ.get("XDG_CURRENT_DESKTOP") ++ if xdg_desktop is not None: ++ desktop_env = xdg_desktop.lower() ++ else: ++ desktop_env = "unknown" ++ if logger_availability: ++ logger.sendToLog( ++ "XDG_CURRENT_DESKTOP environment variable not found.", "WARNING" ++ ) + return os_type, desktop_env + + +-- +2.50.1 + diff --git a/srcpkgs/persepolis/template b/srcpkgs/persepolis/template index 2bdc8a32136..d287395159d 100644 --- a/srcpkgs/persepolis/template +++ b/srcpkgs/persepolis/template @@ -1,17 +1,18 @@ # Template file for 'persepolis' pkgname=persepolis -version=5.1.1 +version=5.2.0 revision=1 build_style=meson build_helper=python3 +hostmakedepends="python3-packaging-bootstrap" depends="python3-pysocks python3-requests python3-pyside6 qt6-svg python3-urllib3 - python3-psutil" + python3-setproctitle python3-psutil" short_desc="QT Download Manager" -maintainer="Orphaned " +maintainer="Komeil Parseh " license="GPL-3.0-or-later" homepage="https://persepolisdm.github.io/" distfiles="https://github.com/persepolisdm/persepolis/archive/${version}.tar.gz" -checksum=d787b4a45b3a38513f1e80e025c4059918f1390b815944c6a541bd07eeb0ccae +checksum=8d002e369955fd77e5353714185ce3edb98463b7117a26583b72f4db4e51b2c8 post_install() { vdoc "${FILESDIR}/README.voidlinux"