From mboxrd@z Thu Jan 1 00:00:00 1970 From: boris.dekshteyn@gmail.com (Boris A. Dekshteyn) Subject: Re: How to add an element 'Ungoogled Chromium with Tor' to Applications menu in Xfce4-panel on GuixSD? Date: Mon, 08 Apr 2019 04:16:26 +1200 Message-ID: <87mul1rdt1.fsf@gmail.com> References: <1a0fe887473f6c344a7c70bd9f1f7117@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDATC-00067B-DR for help-guix@gnu.org; Sun, 07 Apr 2019 12:16:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDATA-0006Ne-Nm for help-guix@gnu.org; Sun, 07 Apr 2019 12:16:34 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:38659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDATA-0006Mv-EY for help-guix@gnu.org; Sun, 07 Apr 2019 12:16:32 -0400 Received: by mail-lf1-x131.google.com with SMTP id u24so756166lfg.5 for ; Sun, 07 Apr 2019 09:16:31 -0700 (PDT) Received: from localhost (pppoe77-82-173-66.kamchatka.ru. [77.82.173.66]) by smtp.gmail.com with ESMTPSA id u16sm5609641lfn.40.2019.04.07.09.16.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Apr 2019 09:16:29 -0700 (PDT) In-Reply-To: <1a0fe887473f6c344a7c70bd9f1f7117@disroot.org> (znavko's message of "Sun, 07 Apr 2019 09:50:20 +0000") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org znavko@disroot.org writes: > Now I want to add Applications menu element 'Chromium Tor'. But as far as guix breaks usual linux directories structure and I have no /usr/share/applications folder, want to aks how to edit or add element to Applications menu in xfce4? Place the .desktop file in $HOME/.local/share/applications And it may be more convenient to use a couple of scripts, like this: $HOME/.bin/tor.browser: --8<---------------cut here---------------start------------->8--- #!/bin/sh GC_ROOT="$HOME/.environments/tor.browser.environment" rm -rf $GC_ROOT guix environment --root=$GC_ROOT --ad-hoc tor ungoogled-chromium -- $HOME/.applications/tor.browser.launcher --8<---------------cut here---------------end--------------->8--- $HOME/.applications/tor.browser.launcher: --8<---------------cut here---------------start------------->8--- #!/bin/sh _EX_TOR_PID=$(pidof tor) if [ -z ${_EX_TOR_PID} ] ; then tor & _TOR_SERVICE_PID=$! _KILL_AFTER="t" else _TOR_SERVICE_PID=$_EX_TOR_PID fi chromium --user-data-dir="$HOME/.config/chromium.tor" --incognito --proxy-server="socks5://localhost:9050" if [ $_KILL_AFTER ] ; then kill $_TOR_SERVICE_PID fi --8<---------------cut here---------------end--------------->8--- imo, of course. -- WBR, Boris Dekshteyn