From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SORTKj+QUF8HeQAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 06:42:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2PklJj+QUF+8ZwAA1q6Kng (envelope-from ) for ; Thu, 03 Sep 2020 06:42:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 026379406B7 for ; Thu, 3 Sep 2020 06:42:06 +0000 (UTC) Received: from localhost ([::1]:60460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDiwf-0002KE-RH for larch@yhetil.org; Thu, 03 Sep 2020 02:42:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDiwP-0002K3-4h for guix-devel@gnu.org; Thu, 03 Sep 2020 02:41:49 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDiwM-00053s-7r for guix-devel@gnu.org; Thu, 03 Sep 2020 02:41:48 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3B4F75C0086 for ; Thu, 3 Sep 2020 02:41:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 03 Sep 2020 02:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=fm3; bh=FXTRTDW4SgynJhhW3lbMHD/9g7 j9hZdT7o7y7A0/69Q=; b=svFp3U6+Su8skvEXka4FVZ0oajVNH1fsf5OiUguE4R ZNOojPAcMbwoDIe2N4iE2ZP+H1mNp8+Q3C0qBod/eitIN4wepUsLYopMi4DODeXa nY3gAHjd4Ttw2WgconPFwrBM1JEbATfm/ZmUnvFfw6kz/cCpbKXKiOF+6xaELsFg Qocq02zcrwWElK6zBukLqrkFB5Xxdyy6ve1v9CCLH4zL3695m03owJPvRyehFZhc lx4KoBT3L60QPLVMJgtrQP5zlF2ubwc18UJtE9oGakMm/krtt9o87lg96Yr4DhvA 7wObU7ReX8OKCBPJo7rRIUAdlCz3pDTyZIbwiqs7qsQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=FXTRTD W4SgynJhhW3lbMHD/9g7j9hZdT7o7y7A0/69Q=; b=WRqznAB99lywWCeQOXlCVi bEYFS0596UPlaaumqrEBRfh6C3BRS/Z28xWHHngk2LkhG1jkPzU7ltrhU15voDUF mB8uBgHihymiDcxYlXG1Ol9ZBzoThQPN8XYVdDkbDd1UqkNghc/ZeixVAYIOItuw sH18jF4kWT/xhmVjbOyANI46MuyN/cudBC7FiV1eNLZDa/FFnL+3qV0+TdBgFgHy //WVMpLznfR6+b2DSwybVanxnOerqd8OAwsFtn8iQ/SKWbHeZwdz6BMWfe8PIvpb IYsnNn9yLKO+qoPIJgRaizlnRRu5Fvs3jR9s0+YS5GF0dCbirTgGDvqFwjMngKDg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegtddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhoofggtgfgsehtje ertdertddvnecuhfhrohhmpeftvgiirgcutehlihiirgguvghhucforghjugcuoehrrdhm rghjugesphgrnhhthhgvrhigrdhorhhgqeenucggtffrrghtthgvrhhnpeffudefjedvgf ejhedtkeejgfejjeeghedtudevgeevvddtieeltdeiieevtdeiteenucffohhmrghinhep phgrnhhthhgvrhigrdhorhhgnecukfhppedukeehrddvtdelrdduleeirddujeeknecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhdrmhgrjhgu sehprghnthhhvghrgidrohhrgh X-ME-Proxy: Received: from localhost (unknown [185.209.196.178]) by mail.messagingengine.com (Postfix) with ESMTPA id 078EC306005B for ; Thu, 3 Sep 2020 02:41:42 -0400 (EDT) Date: Thu, 3 Sep 2020 11:11:42 +0430 From: Reza Alizadeh Majd To: guix-devel@gnu.org Subject: Service implementation for LXQt desktop Message-ID: <20200903111142.2d8a2e43@pantherx.org> Organization: PantherX X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=66.111.4.29; envelope-from=r.majd@pantherx.org; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/03 02:41:44 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pantherx.org header.s=fm3 header.b=svFp3U6+; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=WRqznAB9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: k5Qle/a4vqGI Hi Guix, working on a service definition for LXQt desktop, I need to perform a series of default configurations. for example to set the window manager, prepare default panel, set the default theme, etc. these configurations should be located $XDG_CONFIG_DIRS so the default paths are: /run/current-system/profile/etc/xdg /home/$USER/.guix-profile/etc/xdg /home/$USER/.config/ I wanted to use `activation-service-type` to prepare default configurations in users home directory, but don't know how to access each user's home directory. the other option is to provide default configurations in store and symlink them in system profile. could anyone help me to do this using activation snippet? this is the service implementation that I'm working on: --8<---------------cut here---------------start------------->8--- (define-record-type* lxqt-desktop-configuration make-lxqt-desktop-configuration lxqt-desktop-configuration? (package lxqt-package (default lxqt-modified-dev))) (define %lxqt-activation #~(begin (let* ((conf-dir "DON'T KNOW HOW TO SET PATH FOR PROFILE") (session-conf (string-append conf-dir "/session.conf"))) (use-modules (guix build utils)) (mkdir-p conf-dir) (unless (file-exists? session-conf) (call-with-output-file session-conf (lambda (port) (format port "# Auto Generated by Lxqt Service [General] window_manager=openbox"))))))) (define lxqt-desktop-service-type (service-type (name 'lxqt-desktop) (extensions (list (service-extension profile-service-type (compose list lxqt)))) (service-extension activation-service-type (const %lxqt-activation)) (default-value (lxqt-desktop-configuration)) (description "Run the LXQt desktop environment."))) --8<---------------cut here---------------end--------------->8--- Kind regards, Reza -- Reza Alizadeh Majd PantherX Team https://www.pantherx.org/