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 WLRNIxyEcV/oLAAA0tVLHw (envelope-from ) for ; Mon, 28 Sep 2020 06:35:08 +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 KI5DHxyEcV+kXwAA1q6Kng (envelope-from ) for ; Mon, 28 Sep 2020 06:35:08 +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 B7BD39418ED for ; Mon, 28 Sep 2020 06:31:58 +0000 (UTC) Received: from localhost ([::1]:54666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMmhZ-0004yQ-HA for larch@yhetil.org; Mon, 28 Sep 2020 02:31:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMmh6-0004xl-Ks for guix-devel@gnu.org; Mon, 28 Sep 2020 02:31:29 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMmh1-0008Gb-WC for guix-devel@gnu.org; Mon, 28 Sep 2020 02:31:28 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 333EC5C00B3 for ; Mon, 28 Sep 2020 02:31:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 28 Sep 2020 02:31:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= date:from:to:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= fsCK1o+0VjZI7V9pjQQ4X+viwyp9vc3jf10ssO7IXb4=; b=TGqt4NGlUQbD2Un8 YDiKTLi2sNB24KtLn0pPsH2Lm5uzafEaaMX4BvdB4WvBmyichXh0bf7/54wr3NIY US6bjN7c9hYUyemit45pKdFjpiAq5P0D+08vsuES743WUx4/XoQaWgqIDXLpeGmx kXT0ezmmxb2YpT9qqc5RWrR9ew3jgYbLcTD229J0vGmVZTXU9Q0zI1qLMy8wcsRi 0aAUOq9N160L46Jzu68tGgwk+K0R1wmQTzHE9tHrAEHbtLK+T8pL8yye/TuuTcJm 7euyyK8G4/OB/T8oCm7YFxiFIOPd+msoiWN9gukHyRCoBjlR/fjjalw8MbxT5c+w iy6Q+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=fsCK1o+0VjZI7V9pjQQ4X+viwyp9vc3jf10ssO7IX b4=; b=l4MXAReW4CVf/y7/ySF242L+OiaGgqUdPWX3mnu2sEng5ufaPcK2j5Plx PMAMNKRdvA2mVdj75tJGBuovcojB6Fvu7Cenv2jpeMPK4SeTsn94i2B7gapOzozG jabAFzXtiqBP0kO4A2HqAYT3eoNWVKIlFrYEVpW477xqxFrbzIr4/HSH8Z2g9Ehx Q5bz6jZ0pMmY0cwX+Vu/SGg8f7rr6km30fBGtHOyX5ypAqKyS7w8hX57Rq84izTa O1TzingSUFScDKNJNZxTJD12UcOpY6cGm82C2w9XOLs8fOLnxGvmfsBuwayPLAFo l1rsbzsQmh0RFmdnc+mnSjmC0GxVw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkjghfohfogggtgfesth ejredtredtvdenucfhrhhomheptfgviigrucetlhhiiigruggvhhcuofgrjhguuceorhdr mhgrjhgusehprghnthhhvghrgidrohhrgheqnecuggftrfgrthhtvghrnhepjeektdelhe egfeeluefgjeefvddukedtgeeftefhgeeigeekjeehteehjeejjedtnecuffhomhgrihhn pehprghnthhhvghrgidrohhrghenucfkphepudekhedrvddtledrudeliedrudefkeenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrdhmrghj ugesphgrnhhthhgvrhigrdhorhhg X-ME-Proxy: Received: from panther-arch.localdomain (unknown [185.209.196.138]) by mail.messagingengine.com (Postfix) with ESMTPA id 60DDB306467D for ; Mon, 28 Sep 2020 02:31:22 -0400 (EDT) Date: Mon, 28 Sep 2020 10:01:22 +0330 From: Reza Alizadeh Majd To: guix-devel@gnu.org Subject: Re: Service implementation for LXQt desktop Message-ID: <20200928100122.05caa0e2@panther-arch.localdomain> In-Reply-To: <20200903111142.2d8a2e43@pantherx.org> References: <20200903111142.2d8a2e43@pantherx.org> Organization: PantherX X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-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.26; envelope-from=r.majd@pantherx.org; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 02:06:01 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.01, RCVD_IN_MSPIKE_WL=-0.01, 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=temperror (DNS error when getting key) header.d=pantherx.org header.s=fm3 header.b=TGqt4NGl; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=l4MXAReW; 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: -0.21 X-TUID: 5LfyNBCIcuZt On Thu, 3 Sep 2020 11:11:42 +0430 Reza Alizadeh Majd wrote: > 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 > does anyone have any suggestion about this initial configurations for a new desktop service (LXQt)? check the other desktop services, I didn't find any reference about this type of initial configurations in service definitions, is this type of modifications need to be applied on package definition instead? Regards, Reza -- Reza Alizadeh Majd PantherX Team https://www.pantherx.org/