From patchwork Tue May 21 18:07:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reza Alizadeh Majd X-Patchwork-Id: 14047 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 152B317040; Tue, 21 May 2019 19:08:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B12421703D for ; Tue, 21 May 2019 19:08:08 +0100 (BST) Received: from localhost ([127.0.0.1]:57604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT9BF-0001AW-LX for patchwork@mira.cbaines.net; Tue, 21 May 2019 14:08:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT9BD-0001AG-Eq for guix-patches@gnu.org; Tue, 21 May 2019 14:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT9BC-0003Iw-Hu for guix-patches@gnu.org; Tue, 21 May 2019 14:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hT9BC-0003Il-Bf for guix-patches@gnu.org; Tue, 21 May 2019 14:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hT9BC-0006mA-5d for guix-patches@gnu.org; Tue, 21 May 2019 14:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35789] [PATCH] gnu: lxqt-session: fix lxqt-rc.xml permission issue References: <20190518090229.22339-1-r.majd@pantherx.org> In-Reply-To: <20190518090229.22339-1-r.majd@pantherx.org> Resent-From: Reza Alizadeh Majd Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 May 2019 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35789@debbugs.gnu.org Received: via spool by 35789-submit@debbugs.gnu.org id=B35789.155846208126039 (code B ref 35789); Tue, 21 May 2019 18:08:02 +0000 Received: (at 35789) by debbugs.gnu.org; 21 May 2019 18:08:01 +0000 Received: from localhost ([127.0.0.1]:40894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hT9BA-0006lv-Po for submit@debbugs.gnu.org; Tue, 21 May 2019 14:08:01 -0400 Received: from [5.230.148.152] (port=62690 helo=Rezas-MacBook-Pro-2.local) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hT9B8-0006li-Uj for 35789@debbugs.gnu.org; Tue, 21 May 2019 14:07:59 -0400 Received: by Rezas-MacBook-Pro-2.local (Postfix, from userid 501) id 6E169101B33D46; Tue, 21 May 2019 22:37:54 +0430 (+0430) From: Reza Alizadeh Majd Date: Tue, 21 May 2019 22:37:51 +0430 Message-Id: <20190521180751.95600-1-r.majd@pantherx.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Reza Alizadeh Majd Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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"