Bug 426527 - "Get New Login Screens": Nothing gets installed
Summary: "Get New Login Screens": Nothing gets installed
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.74.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-14 16:14 UTC by Alexander Ewering
Modified: 2022-09-19 14:00 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ewering 2020-09-14 16:14:26 UTC
SUMMARY

When installing new login screens via "Get New Login Screens" (in this case, "Lime-Green"), they do not appear in the gallery and thus cannot be selected. However, they "somehow" do seem to get installed as their "Install" button changes to "Uninstall".


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: neon
(available in About System)
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Comment 1 Alexander Ewering 2020-09-14 16:16:22 UTC
Downloading the theme from its homepage and then using "Install From File..." works as expected.
Comment 2 Nate Graham 2020-09-15 00:05:59 UTC
Can confirm, this one does not download for me either with Frameworks from git master.
Comment 3 Alexander Lohnau 2020-09-15 05:27:59 UTC
Huh, works perfect for me from master.

Can you please enable the debug messages for knewstuff (kdebugsettings is a GUI tool).

Then start the kcm from the command line
>kcmshell5 kcm_sddm

And install an entry, when the password dialog pops up check if there is output like:
>kf.newstuff.core: Install to file  "/tmp/Lime-Green.tar.gz"
>kf.newstuff.core: move:  "/tmp/Lime-Green.tar.gz"  to  "/tmp/Lime-Green.tar.gz"
>kf.newstuff.core: Run command:  "sddmthemeinstaller -i /tmp/Lime-Green.tar.gz"
Comment 4 Alexander Ewering 2020-09-15 14:01:51 UTC
(In reply to Alexander Lohnau from comment #3)
> Huh, works perfect for me from master.
> 
> Can you please enable the debug messages for knewstuff (kdebugsettings is a
> GUI tool).
> 
> Then start the kcm from the command line
> >kcmshell5 kcm_sddm
> 
> And install an entry, when the password dialog pops up check if there is
> output like:
> >kf.newstuff.core: Install to file  "/tmp/Lime-Green.tar.gz"
> >kf.newstuff.core: move:  "/tmp/Lime-Green.tar.gz"  to  "/tmp/Lime-Green.tar.gz"
> >kf.newstuff.core: Run command:  "sddmthemeinstaller -i /tmp/Lime-Green.tar.gz"

Got an interesting error dialog ("Unable to install theme") after waiting at the password prompt for a few seconds:

> DBus Backend error: could not contact the helper. Connection error: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.. Message error: 

Debug output:

org.kde.knewstuff.core: Install  "Yellow"  from:  "https://api.kde-look.org/ocs/v1/"
org.kde.knewstuff.core: Link ID already known 1
org.kde.knewstuff.core:  link for  "1309322"

org.kde.knewstuff.core: Downloading payload QUrl("https://dllb2.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE1NjAyMzkxNDkiLCJvIjoiMSIsInMiOiJkZjA1MjUxMzg3NTgxYjFiYjE1ZmM5MDJiNGVhNjliODRmMWY1OWE1NGE3NDIzM2M2YzhiYTIyYjdkOGVkNGEzYjEzNWFmODYwM2RlY2M3OWM5NjFhZDhmMTQ0ODc4YTlkMGUyZGEwODc0MjA5ZmVkODdkMDNhMzZiOWZjZmZkMCIsInQiOjE2MDAxODE5NjAsInN0ZnAiOm51bGwsInN0aXAiOiIyMTIuMTI5Ljg3LjgxIn0.CsPwe65TP7wi26kHe9lQQdWGwbsmjo1E8DPZ8UKu9Bo/Yellow.tar.gz") to QUrl("file:///tmp/yRKvQN-Yellow.tar.gz")

org.kde.knewstuff.core: File copy job is from (or to) a remote URL
org.kde.knewstuff.core: virtual void KNSCore::DownloadJob::start()
org.kde.knewstuff.core: KNSCore::HTTPWorker::HTTPWorker(const QUrl&, const QUrl&, KNSCore::HTTPWorker::JobType, QObject*)
org.kde.knewstuff.core: Opened file "/tmp/yRKvQN-Yellow.tar.gz" for writing.
org.kde.knewstuff.core: Writing 3426 bytes of data to "/tmp/yRKvQN-Yellow.tar.gz"
org.kde.knewstuff.core: Wrote 3426 bytes. File is now size 3426

[...]

org.kde.knewstuff.core: Write registry

[...]

org.kde.knewstuff.core: void KNSCore::HTTPWorker::handleFinished() QUrl("https://dllb2.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE1NjAyMzkxNDkiLCJvIjoiMSIsInMiOiJkZjA1MjUxMzg3NTgxYjFiYjE1ZmM5MDJiNGVhNjliODRmMWY1OWE1NGE3NDIzM2M2YzhiYTIyYjdkOGVkNGEzYjEzNWFmODYwM2RlY2M3OWM5NjFhZDhmMTQ0ODc4YTlkMGUyZGEwODc0MjA5ZmVkODdkMDNhMzZiOWZjZmZkMCIsInQiOjE2MDAxODE5NjAsInN0ZnAiOm51bGwsInN0aXAiOiIyMTIuMTI5Ljg3LjgxIn0.CsPwe65TP7wi26kHe9lQQdWGwbsmjo1E8DPZ8UKu9Bo/Yellow.tar.gz")
org.kde.knewstuff.core: Data for "https://dllb2.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE1NjAyMzkxNDkiLCJvIjoiMSIsInMiOiJkZjA1MjUxMzg3NTgxYjFiYjE1ZmM5MDJiNGVhNjliODRmMWY1OWE1NGE3NDIzM2M2YzhiYTIyYjdkOGVkNGEzYjEzNWFmODYwM2RlY2M3OWM5NjFhZDhmMTQ0ODc4YTlkMGUyZGEwODc0MjA5ZmVkODdkMDNhMzZiOWZjZmZkMCIsInQiOjE2MDAxODE5NjAsInN0ZnAiOm51bGwsInN0aXAiOiIyMTIuMTI5Ljg3LjgxIn0.CsPwe65TP7wi26kHe9lQQdWGwbsmjo1E8DPZ8UKu9Bo/Yellow.tar.gz" was fetched "(NOT cached)"
org.kde.knewstuff.core: Install:  "Yellow"  from  "/tmp/yRKvQN-Yellow.tar.gz"
org.kde.knewstuff.core: installdir:  "/tmp"
org.kde.knewstuff.core: isarchive:  true
org.kde.knewstuff.core: installing non-archive from  "https://dllb2.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE1NjAyMzkxNDkiLCJvIjoiMSIsInMiOiJkZjA1MjUxMzg3NTgxYjFiYjE1ZmM5MDJiNGVhNjliODRmMWY1OWE1NGE3NDIzM2M2YzhiYTIyYjdkOGVkNGEzYjEzNWFmODYwM2RlY2M3OWM5NjFhZDhmMTQ0ODc4YTlkMGUyZGEwODc0MjA5ZmVkODdkMDNhMzZiOWZjZmZkMCIsInQiOjE2MDAxODE5NjAsInN0ZnAiOm51bGwsInN0aXAiOiIyMTIuMTI5Ljg3LjgxIn0.CsPwe65TP7wi26kHe9lQQdWGwbsmjo1E8DPZ8UKu9Bo/Yellow.tar.gz"
org.kde.knewstuff.core: Install to file  "/tmp/Yellow.tar.gz"
org.kde.knewstuff.core: move:  "/tmp/Yellow.tar.gz"  to  "/tmp/Yellow.tar.gz"
org.kde.knewstuff.core: Run command:  "sddmthemeinstaller -i /tmp/Yellow.tar.gz"
Comment 5 Alexander Lohnau 2020-09-15 14:15:07 UTC
I also noted that it exists after waiting too long for the password input. But does it work when you type the password in normally?

It might also be useful if you could run the install command directly:

>sddmthemeinstaller -i /tmp/Yellow.tar.gz
Comment 6 Alexander Ewering 2020-09-15 15:44:23 UTC
(In reply to Alexander Lohnau from comment #5)
> I also noted that it exists after waiting too long for the password input.
> But does it work when you type the password in normally?
> 
> It might also be useful if you could run the install command directly:
> 
> >sddmthemeinstaller -i /tmp/Yellow.tar.gz

Well, I swear it didn't work (at least when using the Lime-Green thene) when I tried it multiple times yesterday, including timely entry of the password. I just now tried again with the Yellow theme, and it worked and appeared in the gallery.

Odd.
Comment 7 Justin Zobel 2022-09-19 11:36:21 UTC
I've just tested 4 themes from the store and each was installed without issue. Are you still able to replicate this issue?
Comment 8 Alexander Ewering 2022-09-19 13:58:42 UTC
(In reply to Justin Zobel from comment #7)
> I've just tested 4 themes from the store and each was installed without
> issue. Are you still able to replicate this issue?

Hey, sorry I'm not on KDE / Plasma anymore, but I assume it's fixed by now :) Thanks for your efforts.