#!/bin/bash

## Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

#### meta start
#### project Whonix
#### category firewall and usability
#### description
## wrapper to open /etc/whonix_firewall.d/50_user.conf with sudoedit
#### meta end

set -x

## https://bugzilla.xfce.org/show_bug.cgi?id=15282
## https://github.com/lxqt/lxqt-sudo/issues/114
## https://forums.whonix.org/t/use-sudoedit-in-whonix-documentation-and-whonix-software/7599/30
lxsudo sudo -u "$(whoami)" env VISUAL="$VISUAL" sudoedit /etc/whonix_firewall.d/50_user.conf
