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:
co-authored by
Claude Opus 5.5
parent
53e748ccb9
commit
357f72583e
@@ -120,6 +120,16 @@ remove() {
|
||||
[ ! -e "$unit" ]
|
||||
}
|
||||
|
||||
@test "removes the flrig autostart radio configure added, and no other" {
|
||||
mkdir -p "$HOME/.config/autostart"
|
||||
printf '[Desktop Entry]\nExec=flrig\nX-HamPack=radio configure --flrig\n' > "$HOME/.config/autostart/hampack-flrig.desktop"
|
||||
printf '[Desktop Entry]\nExec=flrig\n' > "$HOME/.config/autostart/my-flrig.desktop"
|
||||
remove
|
||||
[ "$status" -eq 0 ]
|
||||
[ ! -e "$HOME/.config/autostart/hampack-flrig.desktop" ]
|
||||
[ -e "$HOME/.config/autostart/my-flrig.desktop" ]
|
||||
}
|
||||
|
||||
@test "does nothing unless confirmed" {
|
||||
mark_installed fldigi
|
||||
mkdir -p "$HAMPACK_STATE"
|
||||
|
||||
Reference in New Issue
Block a user