<?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>402930</bug_id>
          
          <creation_ts>2019-01-06 15:58:40 +0000</creation_ts>
          <short_desc>After you use the image picker to change the background image, your chosen image appears in the picker, but disappears if you navigate away from the KCM and then go back</short_desc>
          <delta_ts>2019-02-05 16:31:39 +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_sddm</component>
          <version>5.14.4</version>
          <rep_platform>Arch Linux</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></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="David Edmundson">kde</assigned_to>
          <cc>bugseforuns</cc>
          
          <cf_commitlink>https://commits.kde.org/sddm-kcm/159e2dcbf935c1aa543a33b1865b6f4a986401e6</cf_commitlink>
          <cf_versionfixedin>5.15.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1830673</commentid>
    <comment_count>0</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-06 15:58:40 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1. Use the image picker to select an image
2. Apply
3. See that the image shows up in the image picker
4. Navigate somewhere else
5. Go back to the SDDM KCM

OBSERVED RESULT
The image picker shows a generic image

EXPECTED RESULT
The image picker should show the image you chose last time</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1830745</commentid>
    <comment_count>1</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2019-01-06 21:46:50 +0000</bug_when>
    <thetext>Works here.
After apply and go through all the kauth stuff?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1830750</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-06 21:58:45 +0000</bug_when>
    <thetext>Found the bug: it&apos;s storing the file path as just the filename, not the full path. Putting a full absolute file path in the Background= key in /usr/share/sddm/themes/breeze/theme.conf.user fixes the issue for me. Patch coming soon...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1830762</commentid>
    <comment_count>3</comment_count>
      <attachid>117312</attachid>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-06 23:32:55 +0000</bug_when>
    <thetext>Created attachment 117312
Prospective patch

I might need a little help here, if you can spare the time. The attached patch fixes the issue in the KCM for me, but then SDDM doesn&apos;t load after a reboot, and I&apos;m not really knowledgeable enough about how it works to figure out why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1830852</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-07 11:38:42 +0000</bug_when>
    <thetext>Hmm, even putting an absolute path in /usr/share/sddm/themes/breeze/theme.conf.user without changing any code breaks login in the same way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1830853</commentid>
    <comment_count>5</comment_count>
      <attachid>117326</attachid>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-07 11:39:48 +0000</bug_when>
    <thetext>Created attachment 117326
Patch take two

This one might be a better approach but also breaks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835020</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-01-31 00:26:22 +0000</bug_when>
    <thetext>It turns out that the breakage I encountered while trying patches to fix this bug is a pre-existing issue that was not introduced with my patch: https://github.com/sddm/sddm/issues/1132

Both patches actually worked!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835830</commentid>
    <comment_count>7</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2019-02-05 10:39:36 +0000</bug_when>
    <thetext>Git commit dc1922e6aa486500cb3d4cfeb0243bb2f5fdeb25 by David Edmundson.
Committed on 05/02/2019 at 10:39.
Pushed by davidedmundson into branch &apos;Plasma/5.15&apos;.

Fix loading of background image preview

Summary:
50445f794b3142f29dcc043f3af83c549c694bcd changed how wallpapers worked.
Instead of storing an absolute path in the config we move the file and
saves a relative path.

The preview icon still expected an absolute path.

This patch loads the image in the same way SDDM expects.
FIXED-IN: 5.15.0

Test Plan:
Set image
Reopened KCM

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18614

M  +6    -4    src/themeconfig.cpp
M  +1    -1    src/themeconfig.h

https://commits.kde.org/sddm-kcm/dc1922e6aa486500cb3d4cfeb0243bb2f5fdeb25</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835831</commentid>
    <comment_count>8</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2019-02-05 10:39:36 +0000</bug_when>
    <thetext>Git commit 159e2dcbf935c1aa543a33b1865b6f4a986401e6 by David Edmundson.
Committed on 05/02/2019 at 10:39.
Pushed by davidedmundson into branch &apos;Plasma/5.15&apos;.

Fix mime type filter on background selection button

Summary:
Ported to explicit QFileDialog instance instead of static method partly
because I don&apos;t understand how to use the magic nameFilter syntax to set
mimes, partly to ease the eventual porting to QtQuick which can&apos;t have a
blockign dialog.

Test Plan:
Clicked on the button
Only image files were listed
Selecting one still worked

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18615

M  +16   -5    src/configwidgets/selectimagebutton.cpp

https://commits.kde.org/sddm-kcm/159e2dcbf935c1aa543a33b1865b6f4a986401e6</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>117312</attachid>
            <date>2019-01-06 23:32:55 +0000</date>
            <delta_ts>2019-01-06 23:32:55 +0000</delta_ts>
            <desc>Prospective patch</desc>
            <filename>402930.patch</filename>
            <type>text/plain</type>
            <size>1057</size>
            <attacher name="Nate Graham">nate</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NyYy90aGVtZWNvbmZpZy5jcHAgYi9zcmMvdGhlbWVjb25maWcuY3BwCmlu
ZGV4IGJjNWE1YjkuLmY4N2M2ZGQgMTAwNjQ0Ci0tLSBhL3NyYy90aGVtZWNvbmZpZy5jcHAKKysr
IGIvc3JjL3RoZW1lY29uZmlnLmNwcApAQCAtMTYxLDYgKzE2MSw5IEBAIHZvaWQgVGhlbWVDb25m
aWc6OmJhY2tncm91bmRDaGFuZ2VkKGNvbnN0IFFTdHJpbmcgJmltYWdlUGF0aCkKIHZvaWQgVGhl
bWVDb25maWc6OnByZXBhcmVDb25maWd1cmF0aW9uVWkoY29uc3QgUVN0cmluZyAmY29uZmlnUGF0
aCkKIHsKICAgICBtVGhlbWVDb25maWdQYXRoID0gY29uZmlnUGF0aDsKKyAgICBjb25zdCBRU3Ry
aW5nIHRoZW1lQ29uZmlnRGlyZWN0b3J5ID0gbVRoZW1lQ29uZmlnUGF0aC5yZW1vdmUoUVN0cmlu
Z0xpdGVyYWwoInRoZW1lLmNvbmYiKSk7CisKKyAgICBxSW5mbygpIDw8ICJ0aGVtZUNvbmZpZ0Rp
cmVjdG9yeSBpczogIiA8PCB0aGVtZUNvbmZpZ0RpcmVjdG9yeTsKIAogICAgIFFGaWxlIGNvbmZp
Z0ZpbGUoY29uZmlnUGF0aCk7CiAgICAgCkBAIC0xNjksNyArMTcyLDcgQEAgdm9pZCBUaGVtZUNv
bmZpZzo6cHJlcGFyZUNvbmZpZ3VyYXRpb25VaShjb25zdCBRU3RyaW5nICZjb25maWdQYXRoKQog
ICAgICAgICB0aGVtZUNvbmZpZy0+YWRkQ29uZmlnU291cmNlcyh7Y29uZmlnRmlsZS5maWxlTmFt
ZSgpfSk7CiAKICAgICAgICAgY29uZmlnVWktPmN1c3RvbWl6ZUJveC0+c2V0VmlzaWJsZSh0cnVl
KTsKLSAgICAgICAgY29uZmlnVWktPnNlbGVjdEJhY2tncm91bmRCdXR0b24tPnNldEltYWdlUGF0
aCh0aGVtZUNvbmZpZy0+Z3JvdXAoIkdlbmVyYWwiKS5yZWFkRW50cnkoImJhY2tncm91bmQiKSk7
CisgICAgICAgIGNvbmZpZ1VpLT5zZWxlY3RCYWNrZ3JvdW5kQnV0dG9uLT5zZXRJbWFnZVBhdGgo
dGhlbWVDb25maWdEaXJlY3RvcnkgKyB0aGVtZUNvbmZpZy0+Z3JvdXAoIkdlbmVyYWwiKS5yZWFk
RW50cnkoImJhY2tncm91bmQiKSk7CiAgICAgfSBlbHNlIHsKICAgICAgICAgY29uZmlnVWktPmN1
c3RvbWl6ZUJveC0+c2V0VmlzaWJsZShmYWxzZSk7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>117326</attachid>
            <date>2019-01-07 11:39:48 +0000</date>
            <delta_ts>2019-01-07 11:39:48 +0000</delta_ts>
            <desc>Patch take two</desc>
            <filename>402930 take 2.patch</filename>
            <type>text/plain</type>
            <size>1411</size>
            <attacher name="Nate Graham">nate</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NyYy90aGVtZWNvbmZpZy5jcHAgYi9zcmMvdGhlbWVjb25maWcuY3BwCmlu
ZGV4IGJjNWE1YjkuLmEzZWZiYTcgMTAwNjQ0Ci0tLSBhL3NyYy90aGVtZWNvbmZpZy5jcHAKKysr
IGIvc3JjL3RoZW1lY29uZmlnLmNwcApAQCAtMTY1LDExICsxNjUsMjMgQEAgdm9pZCBUaGVtZUNv
bmZpZzo6cHJl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mcgcHJlZml4ID0gY29uZmlnVWktPnRoZW1lc0xpc3RWaWV3LT5j
dXJyZW50SW5kZXgoKS5kYXRhKFRoZW1lc01vZGVsOjpQYXRoUm9sZSkudG9TdHJpbmcoKTsKKyAg
ICAgICAgICAgIGNvbmZpZ1VpLT5zZWxlY3RCYWNrZ3JvdW5kQnV0dG9uLT5zZXRJbWFnZVBhdGgo
cHJlZml4ICsgYmFja2dyb3VuZCk7CisgICAgICAgIH0KKwogICAgICAgICBjb25maWdVaS0+Y3Vz
dG9taXplQm94LT5zZXRWaXNpYmxlKHRydWUpOwotICAgICAgICBjb25maWdVaS0+c2VsZWN0QmFj
a2dyb3VuZEJ1dHRvbi0+c2V0SW1hZ2VQYXRoKHRoZW1lQ29uZmlnLT5ncm91cCgiR2VuZXJhbCIp
LnJlYWRFbnRyeSgiYmFja2dyb3VuZCIpKTsKICAgICB9IGVsc2UgewogICAgICAgICBjb25maWdV
aS0+Y3VzdG9taXplQm94LT5zZXRWaXNpYmxlKGZhbHNlKTsKICAgICB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>