From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: How to add an element 'Ungoogled Chromium with Tor' to Applications menu in Xfce4-panel on GuixSD? Date: Sun, 07 Apr 2019 19:23:30 +0000 Message-ID: References: <87mul1rdt1.fsf@gmail.com> <1a0fe887473f6c344a7c70bd9f1f7117@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDDOF-0001HI-29 for help-guix@gnu.org; Sun, 07 Apr 2019 15:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDDOD-0000y8-H6 for help-guix@gnu.org; Sun, 07 Apr 2019 15:23:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48980) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDDOB-0000xQ-Od for help-guix@gnu.org; Sun, 07 Apr 2019 15:23:36 -0400 In-Reply-To: <87mul1rdt1.fsf@gmail.com> 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: boris.dekshteyn@gmail.com, help-guix@gnu.org Thank you, Boris! Works perfectly, I've changed to socks4, as my tor serv= ice works. =0AMy chromium-tor icon: http://0x0.st/zZ2m.png=0A=0AApril 7, = 2019 4:16 PM, boris.dekshteyn@gmail.com wrote:=0A=0A> znavko@disroot.org = writes:=0A> =0A>> Now I want to add Applications menu element 'Chromium T= or'. But as far as guix breaks usual linux=0A>> directories structure and= I have no /usr/share/applications folder, want to aks how to edit or add= =0A>> element to Applications menu in xfce4?=0A> =0A> Place the .desktop = file in $HOME/.local/share/applications=0A> =0A> And it may be more conve= nient to use a couple of scripts, like this:=0A> =0A> $HOME/.bin/tor.brow= ser:=0A> --8<---------------cut here---------------start------------->8--= -=0A> #!/bin/sh=0A> =0A> GC_ROOT=3D"$HOME/.environments/tor.browser.envir= onment"=0A> rm -rf $GC_ROOT=0A> =0A> guix environment --root=3D$GC_ROOT -= -ad-hoc tor ungoogled-chromium --=0A> $HOME/.applications/tor.browser.lau= ncher=0A> --8<---------------cut here---------------end--------------->8-= --=0A> =0A> $HOME/.applications/tor.browser.launcher:=0A> --8<-----------= ----cut here---------------start------------->8---=0A> #!/bin/sh=0A> =0A>= _EX_TOR_PID=3D$(pidof tor)=0A> =0A> if [ -z ${_EX_TOR_PID} ] ; then=0A> = tor &=0A> _TOR_SERVICE_PID=3D$!=0A> _KILL_AFTER=3D"t"=0A> else=0A> _TOR_S= ERVICE_PID=3D$_EX_TOR_PID=0A> fi=0A> =0A> chromium --user-data-dir=3D"$HO= ME/.config/chromium.tor" --incognito=0A> --proxy-server=3D"socks5://local= host:9050"=0A> =0A> if [ $_KILL_AFTER ] ; then=0A> kill $_TOR_SERVICE_PID= =0A> fi=0A> --8<---------------cut here---------------end--------------->= 8---=0A> =0A> imo, of course.=0A> =0A> --=0A> WBR, Boris Dekshteyn