Hola, Here is a diff that includes the desktop bits for barrier. I have tested it with xfce and it seems to be working fine!
I am not 100% sure I did the plist bits correctly - update-plist included an entry for all of the dir's in share/icons/hicolor/scalable/apps/ which seemed clunky.. OK? Cheers, Aaron
diff 4d2a6d1734d9fe7df8312d0d9fd3840b8da87817 /usr/ports blob - 82b3042459f0a5477aac9f5d0ff3521b539f2bf8 file + net/barrier/Makefile --- net/barrier/Makefile +++ net/barrier/Makefile @@ -5,7 +5,7 @@ COMMENT = mouse and keyboard sharing utility V = 2.3.3 DISTNAME = barrier-${V}-release PKGNAME = barrier-${V} -REVISION = 1 +REVISION = 2 CATEGORIES = net x11 MASTER_SITES = https://github.com/debauchee/barrier/releases/download/v${V}/ @@ -36,6 +36,12 @@ do-install: ${INSTALL_PROGRAM} ${WRKDIR}/build-*/bin/barrier* ${PREFIX}/bin/ mv ${PREFIX}/bin/barrier ${PREFIX}/bin/barrier-gui ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/barrier + ${INSTALL_DATA_DIR} ${PREFIX}/share/applications + ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps + ${INSTALL_DATA} ${WRKSRC}/res/barrier.desktop \ + ${PREFIX}/share/applications/ + ${INSTALL_DATA} ${WRKSRC}/res/barrier.svg \ + ${PREFIX}/share/icons/hicolor/scalable/apps/ ${INSTALL_DATA} ${WRKSRC}/doc/barrier.conf.exampl* \ ${PREFIX}/share/examples/barrier/ ${INSTALL_MAN} ${WRKSRC}/doc/barrierc.1 \ blob - /dev/null file + net/barrier/patches/patch-res_barrier_desktop --- /dev/null +++ net/barrier/patches/patch-res_barrier_desktop @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: res/barrier.desktop +--- res/barrier.desktop.orig ++++ res/barrier.desktop +@@ -2,7 +2,7 @@ + Type=Application + Name=Barrier + Comment=Keyboard and mouse sharing solution +-Exec=barrier ++Exec=barrier-gui + Icon=barrier + Terminal=false + Categories=Utility;DesktopUtility; blob - 171023266acda3d9775070c0bd21c357a950adb0 file + net/barrier/pkg/PLIST --- net/barrier/pkg/PLIST +++ net/barrier/pkg/PLIST @@ -4,7 +4,12 @@ @bin bin/barriers @man man/man1/barrierc.1 @man man/man1/barriers.1 +share/applications/ +share/applications/barrier.desktop share/examples/barrier/ share/examples/barrier/barrier.conf.example share/examples/barrier/barrier.conf.example-advanced share/examples/barrier/barrier.conf.example-basic +@tag update-desktop-database +share/icons/hicolor/scalable/apps/barrier.svg +@tag gtk-update-icon-cache %D/share/icons/hicolor