From: iyzsong--- via Guix-patches via <guix-patches@gnu.org>
To: 57257@debbugs.gnu.org
Cc: 宋文武 <iyzsong@member.fsf.org>
Subject: [bug#57257] [PATCH 17/31] gnu: lxqt-session: Update to 1.1.1, don't hardcode /run/current-system.
Date: Wed, 17 Aug 2022 11:24:46 +0800 [thread overview]
Message-ID: <20220817032500.30011-17-iyzsong@envs.net> (raw)
In-Reply-To: <20220817032500.30011-1-iyzsong@envs.net>
From: 宋文武 <iyzsong@member.fsf.org>
* gnu/packages/lxqt.scm (lxqt-session): Update to 1.1.1.
[inputs]: Add qtxdg-tools, remove libqtxdg.
[arguments]<phases>: Remove patching of LXQT_ETC_XDG_DIR and
LXQT_TRANSLATIONS_DIR. Remove wrap-program.
[native-search-paths]: Add 'XDG_CONFIG_DIRS'.
---
gnu/packages/lxqt.scm | 44 ++++++++++++++++---------------------------
1 file changed, 16 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index 3c8d4fc8b7..9fea479605 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -698,20 +698,20 @@ (define-public lxqt-runner
(define-public lxqt-session
(package
(name "lxqt-session")
- (version "0.17.1")
+ (version "1.1.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/lxqt/" name "/releases/download/"
version "/" name "-" version ".tar.xz"))
(sha256
- (base32 "0iwwfyngpbhs2dwvbw0cci0bf3qbqcpjjw7h5vm46nimvgp8q1fr"))))
+ (base32 "0j8q5jfpb2l0vvji3xs8y0jcr792z6sxzj111qqvmdrbpxrkwxnw"))))
(build-system cmake-build-system)
(inputs
(list eudev
kwindowsystem
liblxqt
- libqtxdg
+ qtxdg-tools
procps
qtbase-5
qtsvg-5
@@ -725,40 +725,28 @@ (define-public lxqt-session
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda* (#:key outputs #:allow-other-keys)
- (substitute* '("autostart/CMakeLists.txt"
- "config/CMakeLists.txt")
- (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
- "DESTINATION \"etc/xdg"))
(let ((out (assoc-ref outputs "out")))
(substitute* '("xsession/lxqt.desktop.in")
(("Exec=startlxqt") (string-append "Exec=" out "/bin/startlxqt"))
- (("TryExec=lxqt-session") (string-append "TryExec=" out "/bin/startlxqt")))
- #t)))
- ;; add write permission to lxqt-rc.xml file which is stored as read-only in store
+ (("TryExec=lxqt-session") (string-append "TryExec=" out "/bin/startlxqt"))))))
+
(add-after 'unpack 'patch-openbox-permission
(lambda _
(substitute* "startlxqt.in"
+ ;; Don't add 'etc/xdg' to XDG_CONFIG_DIRS, and 'share' to XDG_DATA_DIRS.
+ (("! contains .*;") "false;")
+ ;; Add write permission to lxqt-rc.xml file which is stored as
+ ;; read-only in store.
(("cp \"\\$LXQT_DEFAULT_OPENBOX_CONFIG\" \"\\$XDG_CONFIG_HOME/openbox\"")
(string-append "cp \"$LXQT_DEFAULT_OPENBOX_CONFIG\" \"$XDG_CONFIG_HOME/openbox\"\n"
" # fix openbox permission issue\n"
- " chmod u+w \"$XDG_CONFIG_HOME/openbox\"/*")))
- #t))
- (add-after 'unpack 'patch-translations-dir
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* '("lxqt-config-session/CMakeLists.txt"
- "lxqt-leave/CMakeLists.txt"
- "lxqt-session/CMakeLists.txt")
- (("\\$\\{LXQT_TRANSLATIONS_DIR\\}")
- (string-append (assoc-ref outputs "out")
- "/share/lxqt/translations")))
- #t))
- (add-after 'install 'wrap-program
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-program (string-append out "/bin/startlxqt")
- `("XDG_CONFIG_DIRS" ":" suffix ("/run/current-system/profile/share"
- "/run/current-system/profile/share/pcmanfm-qt")))
- #t))))))
+ " chmod u+w \"$XDG_CONFIG_HOME/openbox\"/*"))))))))
+ (native-search-paths
+ (list (search-path-specification
+ ;; LXQt applications install their default config files into
+ ;; 'share/lxqt' and search them from XDG_CONFIG_DIRS/lxqt.
+ (variable "XDG_CONFIG_DIRS")
+ (files '("share")))))
(home-page "https://lxqt-project.org")
(synopsis "Session manager for LXQt")
(description "lxqt-session provides the standard session manager
--
2.37.2
next prev parent reply other threads:[~2022-08-17 3:29 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 3:20 [bug#57257] [PATCH 00/31] Update LXQt to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 01/31] gnu: lxqt-build-tools: Update to 0.11.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 02/31] gnu: libqtxdg: Update to 3.9.1 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 03/31] gnu: Add qtxdg-tools iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 04/31] gnu: liblxqt: Update to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 05/31] gnu: libsysstat: Update to 0.4.6 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 06/31] gnu: lxqt-about: Update to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 07/31] gnu: lxqt-admin: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 08/31] gnu: lxqt-config: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 09/31] gnu: lxqt-globalkeys: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 10/31] gnu: lxqt-notificationd: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 11/31] gnu: lxqt-openssh-askpass: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 12/31] gnu: lxqt-panel: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 13/31] gnu: lxqt-policykit: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 14/31] gnu: lxqt-powermanagement: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 15/31] gnu: lxqt-qtplugin: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 16/31] gnu: lxqt-runner: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` iyzsong--- via Guix-patches via [this message]
2022-08-17 3:24 ` [bug#57257] [PATCH 18/31] gnu: lxqt-sudo: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 19/31] gnu: lxqt-themes: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 20/31] gnu: libfm-qt: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 21/31] gnu: pcmanfm-qt: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 22/31] gnu: compton-conf: Remove patch-source phase iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 23/31] gnu: lximage-qt: Update to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 24/31] gnu: obconf-qt: Update to 0.16.2 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 25/31] gnu: pavucontrol-qt: Update to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 26/31] gnu: qps: Update 2.5.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 27/31] gnu: qtermwidget: Update to 1.1.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 28/31] gnu: qterminal: " iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 29/31] gnu: screengrab: Update to 2.4.0 iyzsong--- via Guix-patches via
2022-08-17 3:24 ` [bug#57257] [PATCH 30/31] gnu: lxqt-archiver: Update to 0.6.0 iyzsong--- via Guix-patches via
2022-08-17 3:25 ` [bug#57257] [PATCH 31/31] gnu: lxqt-connman-applet: Remove patch-translations-dir phase iyzsong--- via Guix-patches via
2022-08-21 10:55 ` [bug#57257] [PATCH 00/31] Update LXQt to 1.1.0 Ricardo Wurmus
2022-08-21 11:03 ` ( via Guix-patches via
2022-08-22 0:55 ` 宋文武 via Guix-patches via
2022-08-22 1:07 ` bug#57257: " 宋文武 via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220817032500.30011-17-iyzsong@envs.net \
--to=guix-patches@gnu.org \
--cc=57257@debbugs.gnu.org \
--cc=iyzsong@envs.net \
--cc=iyzsong@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.