Changeset 913b88f


Ignore:
Timestamp:
03/11/2023 04:05:54 AM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
278f297
Parents:
2fa5250
Message:

libpaper: Update the configuration info for libpaper2 (again)

/etc/papersize is essentially useless now. It only provides the
fallback value if the locale does not suggest a paper size. And with
Glibc-2.37 even the "C" locale suggests A4.

See https://github.com/rrthomas/libpaper/issues/40.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libpaper.xml

    r2fa5250 r913b88f  
    120120
    121121      <para>
    122         Create <filename>/etc/papersize</filename> to set the default
    123         system paper size.  Issue the following command as the
    124         &root; user to set this to 'a4'. You may wish
    125         to use a different size, such as letter.
     122        The paper size is automatically determined from the system locale;
     123        see <literal>LC_PAPER</literal> in <filename>locale(7)</filename>.
     124        If you want to override it, create a <filename>papersize</filename>
     125        file in the user configuration directory.  For example:
    126126      </para>
    127127
    128 <screen role="root"><userinput>echo "a4" &gt; /etc/papersize</userinput></screen>
     128<screen role="nudump"><userinput>mkdir -pv ~/.config &amp;&amp;
     129echo "a4" &gt; ~/.config/papersize</userinput></screen>
     130
     131      <para>
     132        If you want to override the paper size globally (for all users),
     133        set up the <envar>PAPERSIZE</envar> environment variable.  For
     134        example:
     135      </para>
     136
     137<screen role="nodump"><userinput>echo "PAPERSIZE=a4" &gt; /etc/profile.d/libpaper.sh</userinput></screen>
     138
     139      <para>
     140        You may use a different paper size, such as
     141        <quote><literal>letter</literal></quote>.
     142      </para>
    129143
    130144    </sect3>
Note: See TracChangeset for help on using the changeset viewer.