Please update this package, it is outdated and broken
The package has not been updated for a long time. As a result, the download link in the source() array in PKGBUILD
no longer works.
Additionally, the smbclient
folks apparently have introduced a glitch in their net
command, requiring the --long
switch used instead of -l
only.
See further details at https://forum.manjaro.org/t/samba-nautilus-share-funktioniert-nicht-mehr/85428/20 and https://forum.manjaro.org/t/thunar-shares-plugin-net-usershare-error-255/93591/10
As a consequence, sharing folders with thunar-shares-plugin
currently does not work:
Calling "net usershare" created error 255: [2022/01/22 17:25:39,0] ../../lib/util/debug.c:1100(reopen_one_log)
reopen_one_log: Unable to open new log file 'shared/log.net': No such file or directory
net usershare add: share name /home/gerd/shared contains invalid characters (any of %<>*?|/\+-=;:,)
To fix: Please update the PKGBUILD as proposed below:
# Maintainer : Rob McCathie <korrode at gmail>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: vinz <vinz@archlinux.us>
# Contributor: Aurélien DESBRIÈRES <ice.cube@gmx.com>
# Contributor: Alexandru Ianu <alexandru.ianu at gmail>
_name=thunar-shares-plugin
pkgname=$_name
pkgver=0.3.1
_gitcommit=9f9d2429217838b3b8375e41ab3675412cf1d0ed
pkgrel=1
pkgdesc="Thunar plugin to quickly share a folder using Samba without requiring root access"
arch=('i686' 'x86_64')
url="http://goodies.xfce.org/projects/thunar-plugins/${_name}"
license=('GPL2' 'LGPL')
depends=('thunar>=1.7.0' 'samba' 'manjaro-settings-samba')
makedepends=('xfce4-dev-tools')
provides=("${_name}=${pkgver}")
replaces=("$_name-manjaro")
conflicts=("${_name}" "$_name-manjaro" "$_name-gtk")
#source=("http://git.xfce.org/thunar-plugins/${_name}/snapshot/${_name}-${_gitcommit}.tar.bz2")
source=("https://gitlab.xfce.org/thunar-plugins/thunar-shares-plugin/-/archive/master/${_name}-master.tar.bz2"
"shares.patch")
sha256sums=('bdb4c5e3c4125522d5893caacf17d599e4bf259b947ee46961825f4e2e80810a'
'88ffc824dd38bb61d3e0db0a0df44bc1afcae3a2b27557570c0e984917c2d575')
build() {
#cd "${srcdir}/${_name}-${_gitcommit}"
cd "${srcdir}/${_name}-master"
patch -p1 -i "$srcdir"/shares.patch
./autogen.sh --prefix=/usr --enable-debug=no
make
}
package() {
#cd "${srcdir}/${_name}-${_gitcommit}"
cd "${srcdir}/${_name}-master"
make DESTDIR="${pkgdir}" install
}
Patch for working around the -l
vs. --long
error:
--- a/libshares/shares.c 2022-01-22 18:59:51.925421512 +0100
+++ b/libshares/shares.c 2022-01-22 19:00:16.665155816 +0100
@@ -711,7 +711,7 @@
return FALSE;
argv[0] = "add";
- argv[1] = "-l";
+ argv[1] = "--long";
argv[2] = info->share_name;
argv[3] = info->path;
argv[4] = info->comment;