From: boris.dekshteyn@gmail.com (Boris A. Dekshteyn)
To: help-guix@gnu.org
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 [thread overview]
Message-ID: <87mul1rdt1.fsf@gmail.com> (raw)
In-Reply-To: <1a0fe887473f6c344a7c70bd9f1f7117@disroot.org> (znavko's message of "Sun, 07 Apr 2019 09:50:20 +0000")
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
next prev parent reply other threads:[~2019-04-07 16:16 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 [this message]
2019-04-07 19:23 ` znavko
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=87mul1rdt1.fsf@gmail.com \
--to=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).