I'm integrating this into a portable SDR-in-a-box with keyboard and all, so I am trying to get it to launch from the GNOME desktop icon. If running it with sudo is no big deal, this is what I had to do to get it to work in Ubuntu 20.04:
Edit `sudo vim /usr/share/polkit-1/actions/SparkSDR.policy`:
```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"
http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.policykit.pkexec.run-SparkSDR">
<description>Run SparkSDR</description>
<message>Authentication is required to run SparkSDR</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/SparkSDR</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
</policyconfig>
```
Then edit the desktop entry in `/usr/share/applications/SparkSDR.desktop`:
```
[Desktop Entry]
Terminal=false
Name=SparkSDR
Exec=/home/odroid/SparkSDR/sparksdr-pkexec
Icon=sparksdr.png
Type=Application
Comment=SparkSDR software defined radio
Categories=AudioVideo;Audio;HamRadio;
```
Then make a new folder: `/home/odroid/SparkSDR`:
`mkdir /home/odroid/SparkSDR`
and edit this file:
`nano /home/odroid/SparkSDR/sparksdr-pkexec`
paste in the following:
```
#!/bin/sh
bash -c 'pkexec /usr/local/bin/SparkSDR'
```
and then make it executable:
`chmod +x /home/odroid/SparkSDR/sparksdr-pkexec`
Then you should be able to run the program from the desktop icon.