From ulrich.sibiller@gmail.com Wed Jun 3 10:16:56 2015 Received: (at 884) by bugs.x2go.org; 3 Jun 2015 08:16:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id BE7B95DA88 for <884@bugs.x2go.org>; Wed, 3 Jun 2015 10:16:56 +0200 (CEST) Received: by labko7 with SMTP id ko7so2094306lab.2 for <884@bugs.x2go.org>; Wed, 03 Jun 2015 01:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=T0iV9I5SWdI5xdWEo0xH1ymRe1IolRIfm6qiU3YhY4M=; b=aWa7kcqyKCcC3gvOr7O+0LJ7n18sERFF+woe+XLfmn9C3damOAMNnvxmmOOddeL/MN zsF7t1KGiNwCeyFmuf4lotbjYadnWey9RuIAQH0czzwe0px//8dBSxUmBZiaDcfTV7jY SDIZP/+vq2qm9gN3PRCy12skYEjD/6qAPUYreK9ogsHnC4cY8glgu/qdf2al2waW+En6 th/AoUb7sGOVgP2Pgsvl1nZhrzVd+Dv/5WkEhV+7kvCsiZymkKiazrHCw7syTawKKQ83 01eV+oSfVoOGOohBOO1TsS2/I89pWxoqExMq/P2dA1PzXGhL3gfVU8PFXLLl0urR1lFp 6Vrw== X-Received: by 10.112.125.33 with SMTP id mn1mr30432151lbb.82.1433319416190; Wed, 03 Jun 2015 01:16:56 -0700 (PDT) MIME-Version: 1.0 Sender: ulrich.sibiller@gmail.com Received: by 10.112.11.201 with HTTP; Wed, 3 Jun 2015 01:16:35 -0700 (PDT) In-Reply-To: References: <2052607521.3484889.1433260164113.JavaMail.yahoo@mail.yahoo.com> <20150602161321.Horde.DMSeApu7qSrGe-1hyqzQcg1@mail.das-netzwerkteam.de> <1481733643.3560862.1433262109464.JavaMail.yahoo@mail.yahoo.com> From: Ulrich Sibiller Date: Wed, 3 Jun 2015 10:16:35 +0200 X-Google-Sender-Auth: J7X_XykUJdayHfORjRZxXgqU8Yw Message-ID: Subject: Re: [X2Go-Dev] Bug#884: Bug#884: Bug#884: nxagent aborts session with 'Could not open default font 'fixed'' To: Michael DePaulo , 884@bugs.x2go.org Content-Type: text/plain; charset=UTF-8 On Tue, Jun 2, 2015 at 11:41 PM, Michael DePaulo wrote: > A quick look at some distros where nxagent works. > > Out of the 5 dirs listed: > > Ubuntu 14.04 contains: > /usr/share/fonts/ (no "misc" under it) > /usr/share/fonts/X11/misc/ > > RHEL 7.1 contains: > /usr/share/fonts/ (no "misc" under it) > /usr/share/X11/fonts/misc/ You can us the -fp option of nxagent/x2goagent to pass an arbitrary font path. Furthermore you could set up an heuristic that determines valid font paths. For our company internal script we use this (ugly) code: fontpath="" while read fp ; do [ -r ${fp%:unscaled}/fonts.dir ] || continue [[ ",$fontpath," == *,$fp,* ]] || fontpath=${fontpath:+$fontpath,}${fp} done < <( for xlog in /var/log/Xorg.0.log /var/log/XFree86.0.log ; do sed -n -e "1,/FontPath set to:/d" -e "s/,$//" -e "s/^ //p" $xlog 2> /dev/null # TAB! grep "FontPath set to " $xlog 2> /dev/null | cut -d\" -f2 | tr , "\012" done for xconf in /etc/X11/xorg.conf /etc/X11/xorg.conf.d/* /etc/X11/XF86Config ; do grep FontPath $xconf 2> /dev/null | grep \" | cut -d\" -f2 done grep /fonts/ /etc/X11/fs/config 2> /dev/null | sed -e "s/^[catalogue = ]*//" -e "s/,$//" ( ls /etc/X11/fontpath.d/*/fonts.dir /usr/share/fonts/*/fonts.dir /usr/share/X11/fonts/*/fonts.dir /usr/share/fonts/X11/*/fonts.dir /usr/X11R6/lib/X11/fonts/*/fonts.dir /usr/lib/X11/fonts/*/fonts.dir locate /fonts.dir | grep "^/usr" ) 2> /dev/null | sed -n "s|/fonts.dir$||p" strings ${NXPATH}/*/nxagent* 2> /dev/null | grep /fonts/ | tr , "\012" ) 2> /dev/null [ -z "$fontpath" ] && read count fontpath < <( strings /usr/bin/X* /usr/X11R6/bin/X* 2>&1 | grep "/fonts/.*," | sed "s,^[^/]*,," | sort | uniq -c | sort -nr | head -1 ) echo remote_fontpath=\"$fontpath\" Uli