barcode-to-pc-server icon indicating copy to clipboard operation
barcode-to-pc-server copied to clipboard

.desktop file would be nice on Linux

Open charlescurley opened this issue 4 years ago • 3 comments

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.

charlescurley avatar Oct 10 '20 22:10 charlescurley

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

fttx avatar Oct 11 '20 06:10 fttx

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.

charlescurley avatar Oct 11 '20 18:10 charlescurley

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:~$ 

charlescurley avatar Oct 11 '20 19:10 charlescurley