Start flrig at login after radio configure --flrig

--flrig adds an autostart entry, ~/.config/autostart/hampack-flrig.desktop,
so flrig is running before the programs that reach the radio through
rigctld and it. If an autostart entry of yours already runs flrig, none
is added: two flrigs would fight over the port. Running it without
--flrig removes the entry, since flrig would take the port from rigctld
at login, and so does hampackremove. Both remove it only if it carries
HamPack's mark (X-HamPack).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:43:34 -07:00
co-authored by Claude Opus 5.5
parent 53e748ccb9
commit 357f72583e
7 changed files with 115 additions and 12 deletions
+6
View File
@@ -266,6 +266,12 @@ if [ -f "$RIGCTLD_UNIT" ]; then
systemctl --user daemon-reload 2> /dev/null
fi
# The flrig autostart entry `radio configure --flrig` added, marked as HamPack's
FLRIG_AUTOSTART="${XDG_CONFIG_HOME:-$HOME/.config}/autostart/hampack-flrig.desktop"
if grep -qx 'X-HamPack=radio configure --flrig' "$FLRIG_AUTOSTART" 2> /dev/null; then
rm -f "$FLRIG_AUTOSTART"
fi
# Take you out of the groups update.sh added you to
for group in $(recorded_installs added-groups); do
echo "Removing you from the $group group..."