[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add an element 'Ungoogled Chromium with Tor' to Applications
From: |
znavko |
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 |
Thank you, Boris! Works perfectly, I've changed to socks4, as my tor service
works.
My chromium-tor icon: http://0x0.st/zZ2m.png
April 7, 2019 4:16 PM, address@hidden wrote:
> address@hidden 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