barcode-to-pc-server
barcode-to-pc-server copied to clipboard
.desktop file would be nice on Linux
It would be nice to have a .desktop file for Linux. I'm no expert on them, but this works on XFCE (gdk based). It does lack an icon, though.
Something like:
[Desktop Entry]
# per https://wiki.xfce.org/howto/customize-menu
Version=1.0
Type=Application
Encoding=UTF-8
Exec=/home/charles/bin/Barcode-to-PC-server-3.13.0.AppImage
# Icon=gnome-freecell
StartupNotify=false
# Categories=X-XFCE;X-Xfce-Toplevel;
# Categories=games
Categories=GNOME;GTK;Other;Internet;Accessories;
OnlyShowIn=XFCE;
Name=Barcode to PC server
Comment=Barcode to PC server. Takes a while to load.
Path=
Terminal=false
Clearly the path for Exec
will want changing, and likely other things as well.
Can you please try this?
https://wetransfer.com/downloads/0d6b6216a27b616bbe3877e6f1d1847620201011061149/52c5a9e24572f665768385c63b453bf320201011061206/96a06d
Fix: https://github.com/electron-userland/electron-builder/issues/3662
Related to: https://github.com/fttx/barcode-to-pc-server/issues/287
I tried it. It seems to work, but I got no .desktop file. Since I run the barcode to PC server as a non-root user, I expected to find it in that user's home directory (typically under ~/.local/share/applications/), but did not. I also watched the output from the server, and saw no error message from trying and failing to create one under /usr/share/applications.
I also logged out of XFCE and back in again. No menu entry.
Possibly relevant:
charles@hawk:~$ cat /etc/debian_version ; lsb_release -a
10.6
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
charles@hawk:~$