From: znavko@disroot.org
To: boris.dekshteyn@gmail.com, help-guix@gnu.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 [thread overview]
Message-ID: <b6f24002d2e604abbb1bf877e614b263@disroot.org> (raw)
In-Reply-To: <87mul1rdt1.fsf@gmail.com>
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, boris.dekshteyn@gmail.com wrote:
> 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
prev parent reply other threads:[~2019-04-07 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-07 9:50 How to add an element 'Ungoogled Chromium with Tor' to Applications menu in Xfce4-panel on GuixSD? znavko
2019-04-07 16:16 ` Boris A. Dekshteyn
2019-04-07 19:23 ` znavko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6f24002d2e604abbb1bf877e614b263@disroot.org \
--to=znavko@disroot.org \
--cc=boris.dekshteyn@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).