nx-libs icon indicating copy to clipboard operation
nx-libs copied to clipboard

font path not set correctly

Open Hurgotron opened this issue 2 years ago • 8 comments

After setting up a new remote x2go instance (using Devuan), the font path was set to

/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi,built-ins

which was missing (xterm complained) /usr/share/fonts/X11/misc. Comparing wirth the old instance, it showed that a symlink from /usr/share/nx/fonts to /usr/share/fonts/X11 was missing. Creating this (and restarting) made the font path change to

/usr/share/nx/fonts/misc/,/usr/share/nx/fonts/Type1/,/usr/share/nx/fonts/75dpi/,/usr/share/nx/fonts/100dpi/,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi,/usr/share/nx/fonts/Type1,/usr/share/nx/fonts/75dpi,/usr/share/nx/fonts/100dpi,built-ins

which contains the needed elements.

  • is this the right way to do this?
  • why was the symlink missing? install scripts broken in general, or just failing for me?
  • is there some other way to set the (default) font path?
  • in the ubuntu bug tracker is a similar issue, see https://bugs.launchpad.net/ubuntu/+source/x2goserver/+bug/1891825
  • man page says 'The default font path is __default_font_path__' which seems broken
  • as far as I know, xorg x11 manages to dynamically change the font path with fontconfig. While this may be out of scope for nx, the proper way of changing the default font path, and a restart being needed, should be documented, because expectations of users may be different.

Hurgotron avatar Feb 19 '22 12:02 Hurgotron

Which manpage are you referring to?

On Sat, Feb 19, 2022 at 1:08 PM Hurgotron @.***> wrote:

After setting up a new remote x2go instance (using Devuan), the font path was set to

/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi,built-ins

which was missing (xterm complained) /usr/share/fonts/X11/misc. Comparing wirth the old instance, it showed that a symlink from /usr/share/nx/fonts to /usr/share/fonts/X11 was missing. Creating this (and restarting) made the font path change to

/usr/share/nx/fonts/misc/,/usr/share/nx/fonts/Type1/,/usr/share/nx/fonts/75dpi/,/usr/share/nx/fonts/100dpi/,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi,/usr/share/nx/fonts/Type1,/usr/share/nx/fonts/75dpi,/usr/share/nx/fonts/100dpi,built-ins

which contains the needed elements.

  • is this the right way to do this?
  • why was the symling missing? install scripts broken in general, or just failing for me?
  • is there some other way to set the (default) font path?
  • in the ubuntu bug tracker is a similar issue, see https://bugs.launchpad.net/ubuntu/+source/x2goserver/+bug/1891825
  • man page says 'The default font path is default_font_path' which seems broken
  • as far as I know, xorg x11 manages to dynamically change the font path with fontconfig. While this may be out of scope for nx, the proper way of changing the default font path, and a restart being needed, should be documented, because expectations of users may be different.

— Reply to this email directly, view it on GitHub https://github.com/ArcticaProject/nx-libs/issues/1039, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZBNZKE4LJ34PRJ6TV3U36B47ANCNFSM5O2NU4KQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

uli42 avatar Feb 19 '22 13:02 uli42

manpage of nxagent - see the Ubuntu bug tracker link. Same issue in my man pages

Hurgotron avatar Feb 19 '22 13:02 Hurgotron

I have openend #1041 for manpage part of this.

uli42 avatar Feb 28 '22 16:02 uli42

On my debian (not devuan) system I have a package called nx-X11-common which contains the missing symlink, amongst other stuff:

.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/nx-x11-common
/usr/share/doc/nx-x11-common/changelog.Debian.gz
/usr/share/doc/nx-x11-common/changelog.gz
/usr/share/doc/nx-x11-common/copyright
/usr/share/fonts
/usr/share/fonts/X11
/usr/share/nx
/usr/share/nx/SecurityPolicy
/usr/share/nx/X11
/usr/share/nx/X11/XErrorDB
/usr/share/nx/X11/Xcms.txt
/usr/share/nx/fonts

So can you please check if your package dependencies are working?

uli42 avatar Feb 28 '22 17:02 uli42

On my system, the package doesn't contain the symlink.

dpkg -L nx-x11-common /. /usr /usr/share /usr/share/doc /usr/share/doc/nx-x11-common /usr/share/doc/nx-x11-common/changelog.Debian.gz /usr/share/doc/nx-x11-common/changelog.gz /usr/share/doc/nx-x11-common/copyright /usr/share/nx /usr/share/nx/SecurityPolicy /usr/share/nx/X11 /usr/share/nx/X11/XErrorDB /usr/share/nx/X11/Xcms.txt

dpkg -l nx-x11-common ii nx-x11-common 2:3.5.99.26-2 all nx-X11 (common files)

apt-cache show nx-x11-common Package: nx-x11-common Version: 2:3.5.99.26-2 Installed-Size: 369 Maintainer: Debian Remote Maintainers [email protected] Architecture: all Breaks: libnx-x11 (<< 2:3.5.0.29-1~), nxagent (<< 2:3.5.0.29-1~), nxlibs (<= 3.5.1) Homepage: https://github.com/ArcticaProject/nx-libs/ Description-en: nx-X11 (common files) NX is a software suite which implements very efficient compression of the X11 protocol. This increases performance when using X applications over a network, especially a slow one. . This package provides all runtime architecture-independent files for nx-X11 Xserver (aka nxagent). Description-md5: 0f6a6249e30d3d81043f7dce2e77290d Source: nx-libs Multi-Arch: foreign Section: x11 Priority: optional Filename: pool/DEBIAN/main/n/nx-libs/nx-x11-common_3.5.99.26-2_all.deb Size: 200588 MD5sum: 9ef325649ee48700f2133afd42de5db1 SHA256: 63ad31d6e593e00662550a68b3280df062253ece3c22a12f8ba338e0a1916c8d

So it seems to be an original Debian package (most Devuan packages are) which is broken / incomplete?

Hurgotron avatar Feb 28 '22 21:02 Hurgotron

Yes, seems so.

Hurgotron @.***> schrieb am Mo., 28. Feb. 2022, 22:12:

On my system, the package doesn't contain the symlink.

dpkg -L nx-x11-common /. /usr /usr/share /usr/share/doc /usr/share/doc/nx-x11-common /usr/share/doc/nx-x11-common/changelog.Debian.gz /usr/share/doc/nx-x11-common/changelog.gz /usr/share/doc/nx-x11-common/copyright /usr/share/nx /usr/share/nx/SecurityPolicy /usr/share/nx/X11 /usr/share/nx/X11/XErrorDB /usr/share/nx/X11/Xcms.txt

dpkg -l nx-x11-common ii nx-x11-common 2:3.5.99.26-2 all nx-X11 (common files)

apt-cache show nx-x11-common Package: nx-x11-common Version: 2:3.5.99.26-2 Installed-Size: 369 Maintainer: Debian Remote Maintainers @.*** Architecture: all Breaks: libnx-x11 (<< 2:3.5.0.29-1~), nxagent (<< 2:3.5.0.29-1~), nxlibs (<= 3.5.1) Homepage: https://github.com/ArcticaProject/nx-libs/ Description-en: nx-X11 (common files) NX is a software suite which implements very efficient compression of the X11 protocol. This increases performance when using X applications over a network, especially a slow one. . This package provides all runtime architecture-independent files for nx-X11 Xserver (aka nxagent). Description-md5: 0f6a6249e30d3d81043f7dce2e77290d Source: nx-libs Multi-Arch: foreign Section: x11 Priority: optional Filename: pool/DEBIAN/main/n/nx-libs/nx-x11-common_3.5.99.26-2_all.deb Size: 200588 MD5sum: 9ef325649ee48700f2133afd42de5db1 SHA256: 63ad31d6e593e00662550a68b3280df062253ece3c22a12f8ba338e0a1916c8d

So it seems to be an original Debian package (most Devuan packages are) which is broken / incomplete?

— Reply to this email directly, view it on GitHub https://github.com/ArcticaProject/nx-libs/issues/1039#issuecomment-1054666562, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZARKLZ3TAEPW32DXJLU5PQMDANCNFSM5O2NU4KQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

uli42 avatar Mar 01 '22 09:03 uli42

I have just build debian packages with current HEAD and which resulted in nx-x11-common including the link. So can you please open a bugreport @debian?

uli42 avatar Mar 01 '22 10:03 uli42

Opened Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006662

Hurgotron avatar Mar 03 '22 23:03 Hurgotron

I just uploaded a fix for this to nx-libs 3.5.99.27-1 (testing/unstable) and about to upload as nx-libs 3.5.99.26-5+deb12u1 (bookworm). The official DEBs were missing debian/nx-x11-common.links (which is present in this repo). So the issue was specific to the official Debian package.

sunweaver avatar Aug 27 '23 12:08 sunweaver