gmtp: pass --datapath in the wrapper

gmtp gets somewhat confused trying to lookup some of its own assets when
installed system-wide. It first attempts to locate the path to its own binary by
searching for itself in $PATH, arrives at /run/current-system/sw/bin/gmtp, and
then performs lookups relative to that path without dereferencing the
symlink. Some of the lookups result in searching for, for example, icons in
/run/current-system/sw/bin/../share/gmtp/ which doesn't exist.
This commit is contained in:
Piotr Bogdan 2018-03-30 22:40:36 +01:00
parent d5f356374c
commit 38f7daebdb

View file

@ -17,6 +17,10 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
preFixup = ''
gappsWrapperArgs+=(--add-flags "--datapath \"$out/share\"");
'';
meta = {
description = "A simple MP3 and Media player client for UNIX and UNIX like systems.";
homepage = https://gmtp.sourceforge.io;