mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
persepolis: update to 5.2.0. adopt
This commit is contained in:
parent
c0eeed7338
commit
89e4e5150b
3 changed files with 39 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
From d295a72f7bf03839f13067e3d9689bb6d33e8f65 Mon Sep 17 00:00:00 2001
|
||||
From: Komeil Parseh <komeilparseh@disroot.org>
|
||||
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
|
||||
|
|
@ -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 <orphan@voidlinux.org>"
|
||||
maintainer="Komeil Parseh <komeilparseh@disroot.org>"
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue