[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: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
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