GNU bug report logs -
#35789
[PATCH] gnu: lxqt-session: fix lxqt-rc.xml permission issue
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35789 in the body.
You can then email your comments to 35789 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#35789
; Package
guix-patches
.
(Sat, 18 May 2019 09:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Reza Alizadeh Majd <r.majd <at> pantherx.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 18 May 2019 09:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/lxqt.scm (lxqt-session): change lxqt-rc.xml permission to
755 after initial copy to user directory.
---
gnu/packages/lxqt.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index d91efe715d..94d47bc862 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -827,6 +827,14 @@ allows for launching applications or shutting down the system.")
(("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
"DESTINATION \"etc/xdg"))
#t))
+ (add-after 'unpack 'patch-openbox-permission
+ (lambda _
+ (substitute* "startlxqt.in"
+ (("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 -R 755 \"$XDG_CONFIG_HOME/openbox\"")))
+ #t))
(add-after 'unpack 'patch-translations-dir
(lambda* (#:key outputs #:allow-other-keys)
(substitute* '("lxqt-config-session/CMakeLists.txt"
--
2.19.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35789
; Package
guix-patches
.
(Sat, 18 May 2019 10:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 35789 <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
Based on issue that I submitted before
( http://lists.gnu.org/archive/html/help-guix/2019-05/msg00372.html ) ,
lxqt-session copies an openbox related file (lxqt-rc.xml) to user's home directory,
since this file permissions are set as readonly in `gnu/store`, users are unable to
modify this file using openbox settings GUI, for this I submitted following patch to
set proper permessions to `lxqt-rc.xml` file after initial copy to user's home
directory.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35789
; Package
guix-patches
.
(Tue, 21 May 2019 14:31:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35789 <at> debbugs.gnu.org (full text, mbox):
Hello,
Reza Alizadeh Majd <r.majd <at> pantherx.org> skribis:
> * gnu/packages/lxqt.scm (lxqt-session): change lxqt-rc.xml permission to
> 755 after initial copy to user directory.
[...]
> + (substitute* "startlxqt.in"
> + (("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 -R 755 \"$XDG_CONFIG_HOME/openbox\"")))
That will make every file executable.
What about just:
chmod u+w "$XDG_CONFIG_HOME/openbox"/*
?
One last thing: could you provide the explanation you gave in just one
or two lines of comment right above this ‘substitute*’ expression?
Thank you,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35789
; Package
guix-patches
.
(Tue, 21 May 2019 18:08:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 35789 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/lxqt.scm (lxqt-session): add write permission to
lxqt-rc.xml file after initial copy to user directory
---
gnu/packages/lxqt.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index d91efe715d..e69f29ed1c 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -827,6 +827,15 @@ allows for launching applications or shutting down the system.")
(("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
"DESTINATION \"etc/xdg"))
#t))
+ ;; add write permission to lxqt-rc.xml file which is stored as read-only in store
+ (add-after 'unpack 'patch-openbox-permission
+ (lambda _
+ (substitute* "startlxqt.in"
+ (("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"
--
2.19.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#35789
; Package
guix-patches
.
(Tue, 21 May 2019 18:24:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 35789 <at> debbugs.gnu.org (full text, mbox):
Hi,
> chmod u+w "$XDG_CONFIG_HOME/openbox"/*
you're right, setting the write permission to lxqt-rc.xml is preferred.
I also add a comment line before permission modification phase and amend
my last commit.
Best,
Reza
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Fri, 24 May 2019 15:55:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Reza Alizadeh Majd <r.majd <at> pantherx.org>
:
bug acknowledged by developer.
(Fri, 24 May 2019 15:55:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 35789-done <at> debbugs.gnu.org (full text, mbox):
Reza Alizadeh Majd <r.majd <at> pantherx.org> skribis:
> * gnu/packages/lxqt.scm (lxqt-session): add write permission to
> lxqt-rc.xml file after initial copy to user directory
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Jun 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 309 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.