Skip to content

fonts.fonts requires a reboot #9027

Closed
Closed

Description

@Profpatsch

When I added japanese fonts to fonts.fonts it took a reboot to display the new glyphs (instead of just boxes). An xserver restart might be enough, though I didn’t try that.

Update: The specific program was chromium, I don’t know which other programs were affected.

Activity

  1. danbst commented on Jul 31, 2015

    @danbst
    Contributor

    xserver is not restarted by default under changes, and I think this is right

    what is wrong, is that nothing is echo-ed into console when some user actions are required after nixos-rebuild. There are "preactions", like "download this file yourself because it is non-free", but no "postactions"

    though these are thoughts only on "An xserver restart might be enough" part, not on bug itself

  2. edolstra commented on Jul 31, 2015

    @edolstra
    Member

    Surely this is only the case for server-side font rendering, which hardly any modern application uses anymore?

    Also, nixos-rebuild does show a warning:

    NOT restarting the following changed units: display-manager.service
    

    However, it would be good if such changes took effect on X logout/login (rather than requiring a systemctl restart display-manager).

  3. danbst commented on Jul 31, 2015

    @danbst
    Contributor

    @edolstra as a beginner, I read

    NOT restarting the following changed units: display-manager.service
    

    as

    Guy, I do some magic, and for that magic I require display-manager.service NOT to restart. Don't bother me on that stuff
    

    Would be better:

    Some services are not auto restarted. You can restart them manually with 'systemctl restart service'
    - changed attributes <list of changed attributes> may require display-manager.service restart
    - changed attributes <list of changed attributes> require postgresql.service restart
    ...
    
  4. added
    6.topic: nixos
    on Jul 31, 2015
  5. vcunat commented on Jul 31, 2015

    @vcunat
    Member

    I'm fairly certain display-manager is a red herring. Nowadays, fonts are provided by /etc/fonts, which is set up in our default to be re-scanned every 30 seconds. (When FcFontSetList is called; beware of applications caching such results.) Running fc-list might be a good way to find out the status.

  6. vcunat commented on Jul 31, 2015

    @vcunat
    Member

    @danbst: there may be other things changed than just attributes (e.g. implementation, versions of dependencies, anything). Note that restarting display-manager would kill all graphical programs and force you to re-log, which is why we don't do it by default.

  7. Profpatsch commented on Jul 31, 2015

    @Profpatsch
    MemberAuthor

    For Chromium it didn’t pick up the changes.

    No idea how font configuration works on Linux, so I’m not much of help with the internals.

  8. Profpatsch commented on Mar 8, 2016

    @Profpatsch
    MemberAuthor

    Can’t reproduce anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions