Skip to content

Instantly share code, notes, and snippets.

@a-andreyev
Last active December 4, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-andreyev/a8be6b884d33242c4f84646d76436135 to your computer and use it in GitHub Desktop.
Save a-andreyev/a8be6b884d33242c4f84646d76436135 to your computer and use it in GitHub Desktop.

Development hints

Adding registered Matrix account to the Telepathy

According to tank.manager via mc-tool from telepathy-mission-control:

mc-tool add tank/matrix <connection-local-name> string:account=<matrix-username> string:user=<local-username> string:password=<matrix-password> string:server=<matrix.org or another> string:device=<device-name>

Check summary:

mc-tool summary

Enable account:

mc-tool enable <account name>

Debugging

According to telepathy freedesktop org debugging manuals:

stop GUI clients (KDE gui, for example):

killall -i ktp-text-ui ktp-contactlist

stop MC (component implementing both the Account Manager and Channel Dispatcher):

killall -i mission-control

stop tank (matrix connection operator):

killall -i telepathy-tank

start tank with logs output to tank.log:

/usr/lib/telepathy/telepathy-tank 2>&1 | tee tank.log

start MC with logs output to mc.log:

G_MESSAGES_DEBUG=all MC_DEBUG=all /usr/lib/telepathy/mission-control-5 2>&1 | tee mc.log

Rebuilding system arch linux package

Create some temporary build directory:

mkdir /path/to/telepathy-tank-test-package

Download aur git pkgbuild script there:

cd /path/to/telepathy-tank-test-package
curl -L https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=telepathy-tank-git -o PKGBUILD

Edit PKGBUILD to support your cloned git repo not github source:

sed -i 's/source=/#source=/g' PKGBUILD
sed -i 's/md5sums=/#md5sums=/g' PKGBUILD

Edit PKGBUILD to support cloned git repo path at pkgver() and build() part:

sed -i 's/cd \$_gitname/cd \$_TANKGITPATH/g' PKGBUILD
sed -i 's/cmake ..\/\$_gitname/cmake \$_TANKGITPATH/g' PKGBUILD

Run makepkg specifying you local git path:

_TANKGITPATH=/path/to/code/telepathy-tank makepkg

Install local package (specify exact new package name, not telepathy-tank-git-r*.pkg.tar.xz:

# pacman -U telepathy-tank-git-r*.pkg.tar.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment