zna...@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

Reply via email to