I’m using this ebuild file (inserted the PVFM variable because program version and FM-client versions differ) with USE_FLAG “caja”:
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PVFM=1.3.12.36116
DESCRIPTION="Advanced cross-platform Google Drive client"
HOMEPAGE="https://www.insynchq.com/"
SRC_URI="
x86? ( http://s.insynchq.com/builds/insync_${PV}-precise_i386.deb )
amd64? ( http://s.insynchq.com/builds/insync_${PV}-precise_amd64.deb )
nautilus? ( http://s.insynchq.com/builds/insync-nautilus_${PVFM}-precise_all.deb )
dolphin? ( http://s.insynchq.com/builds/insync-dolphin_${PVFM}-precise_all.deb )
thunar? ( http://s.insynchq.com/builds/insync-thunar_${PVFM}-precise_all.deb )
nemo? ( http://s.insynchq.com/builds/insync-nemo_${PVFM}-precise_all.deb )
caja? ( http://s.insynchq.com/builds/insync-caja_${PVFM}-precise_all.deb )"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
DEPEND="<dev-libs/libevent-2.2"
RDEPEND="${DEPEND}
nautilus? ( dev-python/nautilus-python )
dolphin? ( kde-apps/dolphin )
thunar? ( dev-python/thunarx-python )
nemo? ( gnome-extra/nemo )
caja? ( mate-base/caja )"
IUSE="nautilus dolphin thunar nemo caja"
src_unpack() {
mkdir "${S}"
cd "${S}"
if use amd64 ; then
unpack insync_"${PV}"-precise_amd64.deb
else
unpack insync_"${PV}"-precise_i386.deb
fi
unpack ./data.tar.gz
if use nautilus ; then
unpack insync-nautilus_"${PVFM}"-precise_all.deb
elif use dolphin ; then
unpack insync-dolphin_"${PVFM}"-precise_all.deb
elif use thunar ; then
unpack insync-thunar_"${PVFM}"-precise_all.deb
elif use nemo ; then
unpack insync-nemo_"${PVFM}"-precise_all.deb
elif use caja ; then
unpack insync-caja_"${PVFM}"-precise_all.deb
fi
unpack ./data.tar.gz
}
src_install() {
cp -pPR "${S}"/usr "${D}"/ || die "Installation failed"
echo "SEARCH_DIRS_MASK=\"/usr/lib*/insync\"" > "${T}/70${PN}" || die
insinto "/etc/revdep-rebuild" && doins "${T}/70${PN}" || die
}
pkg_postinst() {
elog "To automatically start insync add 'insync' to your session"
elog "startup scripts. GNOME users can also choose to enable"
elog "the insync extension via gnome-tweak-tool."
}
When renaming ~/.config/Insync, “insync start --no-daemon” opens a browser window with the usual google dialogs, after granting access, the browser hangs at “https://www.insynchq.com/connect/cb?state={“login_id”:+…” with the “Connecting to Insync…” message. Logging in by clicking on “Log in to dashboard” works perfectly.
[edit]
Same result when reinstalling without caja support.
[/edit]