<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>420928</bug_id>
          
          <creation_ts>2020-05-02 21:41:17 +0000</creation_ts>
          <short_desc>Allow setting default page size (LC_PAGE)</short_desc>
          <delta_ts>2022-07-15 16:21:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_regionandlang</component>
          <version>5.16.5</version>
          <rep_platform>Kubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>junior-jobs, usability</keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Syfer Polski">syferpl</reporter>
          <assigned_to name="Sebastian Kügler">sebas</assigned_to>
          <cc>akselmo</cc>
    
    <cc>billgee</cc>
    
    <cc>hanyoung</cc>
    
    <cc>nate</cc>
    
    <cc>null</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/commit/73bfdcff3d7d16e648aaf9ea7630a3967376412e</cf_commitlink>
          <cf_versionfixedin>5.26</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1926722</commentid>
    <comment_count>0</comment_count>
    <who name="Syfer Polski">syferpl</who>
    <bug_when>2020-05-02 21:41:17 +0000</bug_when>
    <thetext>SUMMARY
The format settings in SystemSettings should expose a setting to change the preferred page format. Currently people who have set all their formats to use metric find themselves with typesetting programs such as LibreOffice producing &quot;letter&quot; formatted documents instead of A4 that&apos;s standard around the world.
Changing the format requires writing a value to /etc/papersize, but the discoverability of this option is quite low. The discoverability of this setting in SystemSettings will be much higher and thus it should be exposed here. The minimum two options should be &quot;letter&quot; and &quot;A4&quot;.

Setting the region to anything except USA and Canada should set this value to A4 as well.

STEPS TO REPRODUCE
1. Open SystemSettings
2. Go to Regional Settings
3. Go to formats

OBSERVED RESULT
There is no option to change the paper size.

EXPECTED RESULT
There should be an option to change the paper size

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 19.10
(available in About System)
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
According to https://linux.die.net/man/5/papersize, valid values include a3, a4, a5, b5, letter, legal,executive, note and 11x17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928028</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-05-07 14:35:49 +0000</bug_when>
    <thetext>Interesting idea. I like it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991490</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-01-06 00:07:22 +0000</bug_when>
    <thetext>Looks like this will require adding support for reading and writing the LC_PAPER environment variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2112536</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-03-22 02:28:37 +0000</bug_when>
    <thetext>*** Bug 451128 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123040</commentid>
    <comment_count>4</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2022-05-12 18:21:39 +0000</bug_when>
    <thetext>I could give this a try as my first contribution :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123042</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-05-12 18:30:36 +0000</bug_when>
    <thetext>Sounds great! Might be wise to wait until after https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1147 has landed though, as that merge request changes basically all the code. You can CC yourself on its progress by going there and clicking the little switch by &quot;Notification&quot; on the right sidebar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123043</commentid>
    <comment_count>6</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2022-05-12 18:31:28 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #5)
&gt; Sounds great! Might be wise to wait until after
&gt; https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1147 has
&gt; landed though, as that merge request changes basically all the code. You can
&gt; CC yourself on its progress by going there and clicking the little switch by
&gt; &quot;Notification&quot; on the right sidebar.

Thanks, will do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138036</commentid>
    <comment_count>7</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2022-07-09 20:38:18 +0000</bug_when>
    <thetext>Hi, now that this is merged https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1147

Can I start working on this now or is there something else I should wait on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138041</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-07-09 21:37:15 +0000</bug_when>
    <thetext>Yes, go right ahead now! Thanks again for volunteering to do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139266</commentid>
    <comment_count>9</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-07-15 00:32:26 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1922</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139402</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-07-15 16:21:05 +0000</bug_when>
    <thetext>Git commit 73bfdcff3d7d16e648aaf9ea7630a3967376412e by Nate Graham, on behalf of Akseli Lahtinen.
Committed on 15/07/2022 at 16:21.
Pushed by ngraham into branch &apos;master&apos;.

kcms/regionandlang: Add default paper size (LC_PAPER) customizability

This adds LC_PAPER as a setting to Region and Language settings, so
it becomes possible to choose the default paper size.
FIXED-IN: 5.26

M  +11   -0    kcms/region_language/exampleutility.cpp
M  +1    -0    kcms/region_language/exampleutility.h
M  +7    -1    kcms/region_language/kcmregionandlang.cpp
M  +5    -0    kcms/region_language/languagelistmodel.cpp
M  +1    -0    kcms/region_language/languagelistmodel.h
M  +2    -0    kcms/region_language/localelistmodel.cpp
M  +24   -1    kcms/region_language/optionsmodel.cpp
M  +2    -1    kcms/region_language/optionsmodel.h
M  +5    -0    kcms/region_language/package/contents/ui/main.qml
M  +4    -0    kcms/region_language/regionandlangsettings.cpp
M  +3    -0    kcms/region_language/regionandlangsettingsbase.kcfg
M  +1    -1    kcms/region_language/settingtype.h

https://invent.kde.org/plasma/plasma-workspace/commit/73bfdcff3d7d16e648aaf9ea7630a3967376412e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>