Closed yarda closed 7 years ago
Thanks for that, I'll start looking into when I get chance.
I didn't go down this route myself due to the extra work getting the stand alone version to play nicely.
This is an example working .desktop file:
[Desktop Entry]
Version=1.0
Type=Application
Name=RTLSDR Scanner
Comment=A cross platform Python frequency scanning GUI for the OsmoSDR rtl-sdr library
Exec=rtlsdr_scan
Icon=/opt/rtlsdr-scanner/rtlsdr_scan.ico
Categories=HamRadio;
Only the icon path is hardcoded, because /usr/share/icons/
is not yet used (included in this bug report). Also, #25 could be marked as a duplicate of this one?
Thanks. I think you should use /usr/share/icons (or some variable there replaceable during the install phase), but it's no problem for downstream to patch it. I think #25 is duplicate then.
I've added your example desktop file in 1d7565fc7eb70c154c8128d1e98dc67ce25617a7, although I've removed the icon key as this should be modified by the package maintainer.
Thanks again.
Hi,
I have just packaged RTLDR-Scanner into Fedora [1]. It turned out few things could be improved for the package to be installed system-wide. I think this could ease packaging for other distros as well. I am attaching distro specific patch I used in Fedora. I am pretty sure it could be done more elegant and generic way - it's just for the insight and not currently ready for PR. What the patch is intended for:
Maybe I could also try to implement these ideas better way and PR later.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1356048 patch.zip