From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: How to add an element 'Ungoogled Chromium with Tor' to Applications menu in Xfce4-panel on GuixSD? Date: Sun, 07 Apr 2019 09:50:20 +0000 Message-ID: <1a0fe887473f6c344a7c70bd9f1f7117@disroot.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--=_RainLoop_643_826616213.1554630620" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:47120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hD4Re-00049l-GF for help-guix@gnu.org; Sun, 07 Apr 2019 05:50:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hD4Rc-0007lQ-7n for help-guix@gnu.org; Sun, 07 Apr 2019 05:50:33 -0400 Received: from knopi.disroot.org ([178.21.23.139]:60812) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hD4RY-0007RM-SX for help-guix@gnu.org; Sun, 07 Apr 2019 05:50:31 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3639F2E624 for ; Sun, 7 Apr 2019 11:50:23 +0200 (CEST) Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8BLbipZ7w113 for ; Sun, 7 Apr 2019 11:50:21 +0200 (CEST) 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 ----=_RainLoop_643_826616213.1554630620 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello! I've installed Ungoogled-Chromium on GuixSD, thanks Marius Bakke f= or the port to guix!=0A=0AI've found Chromium has settings for proxy only= from command line run.=0AUsing 'man chromium' I've got Chromium works wi= th Tor this way:=0A=0A`chromium --proxy-server=3D"socks4://127.0.0.1:9050= "`=0A=0Acause tor is using port 9050:=0A$ netstat -lntu=0AActive Internet= connections (only servers)=0AProto Recv-Q Send-Q Local Address Foreign A= ddress State =0Atcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN =0Audp 0 0 0.0.0.= 0:68 0.0.0.0:* =0ANow I want to add Applications menu element 'Chromium T= or'. But as far as guix breaks usual linux directories structure and I ha= ve no /usr/share/applications folder, want to aks how to edit or add elem= ent to Applications menu in xfce4? ----=_RainLoop_643_826616213.1554630620 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
<= div>
He= llo! I've installed Ungoogled-Chromium on GuixSD, thanks Marius Bakke for= the port to guix!

I've found Chromium has settings for proxy only= from command line run.
Using 'man chromium' I've got Chromium works w= ith Tor this way:

`chromium --proxy-server=3D"socks4://127.0.0.1:9= 050"`

cause tor is using port 9050:
$ netstat -lntu
Active I= nternet connections (only servers)
Proto Recv-Q Send-Q Local Address F= oreign Address State
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN
udp = 0 0 0.0.0.0:68 0.0.0.0:*


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 f= older, want to aks how to edit or add element to Applications menu in xfc= e4?
----=_RainLoop_643_826616213.1554630620-- 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 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