Bug 454576 - KRunner and the KDE launcher can't open recent files
Summary: KRunner and the KDE launcher can't open recent files
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kconfigwidgets
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.94.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-29 13:42 UTC by Anas-B
Modified: 2022-05-30 20:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A video showcasing the bug (1.33 MB, video/mp4)
2022-05-29 16:16 UTC, Anas-B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anas-B 2022-05-29 13:42:33 UTC
SUMMARY
***
Hi, As is shown in the video (https://imgur.com/F1Kia6o), neither KRunner nor the App Launcher seems to be able to open recent documents. In the panel below it shows a blank icon with a loading bar but then they close and the document doesn't open. The plugin is active, the documents open fine from the file manager. I'm not sure if this is a general bug or something specific to my setup. I would appreciate any help solving this issue, or at least just a method to try and troubleshoot it. 

Thanks in advance.
***


STEPS TO REPRODUCE
1. Open a document from the file manager
2. Close the document. Open it from the *recent* from either KRunner or the app launcher
3. Document loads for a second, then it doesn't open

OBSERVED RESULT
You see a blank thumbnail on the panel with a loading circle, but it then closes and the document doesn't open.

EXPECTED RESULT
Any recent document would open normally just as if opened from the file manager.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-33-generic (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Comment 1 Anas-B 2022-05-29 16:16:03 UTC
Created attachment 149320 [details]
A video showcasing the bug
Comment 2 Bacteria 2022-05-29 18:13:11 UTC
Unable to reproduce.

Does this happen only for Okular supported files? Or also for others like images, audio, videos?
Comment 3 Anas-B 2022-05-29 18:26:48 UTC
(In reply to Bacteria from comment #2)
> Unable to reproduce.
> 
> Does this happen only for Okular supported files? Or also for others like
> images, audio, videos?

Pretty much with everything. Nothing opens, even files don't open unless I click on the icon to the left. Apps launch fine, however. 
Is there a way for me to try and debug this? I'm still a beginner, as you can probably tell by how messy this bug report is. Normally I open whatever app I need to troubleshoot from the terminal to see what issues crop up. It doesn't work in this case.
Comment 4 Bacteria 2022-05-29 18:33:10 UTC
> unless I click on the icon to the left.

Not sure what you mean here. Are you able to open the file if you click on the icon of search result?

> Is there a way for me to try and debug this?

Not sure. But you can get logs of the whole plasmashell using: killall plasmashell & kstart5 plasmashell
Comment 5 Anas-B 2022-05-29 18:51:33 UTC
(In reply to Bacteria from comment #4)
> > unless I click on the icon to the left.
> 
> Not sure what you mean here. Are you able to open the file if you click on
> the icon of search result?
> 
> > Is there a way for me to try and debug this?
> 
> Not sure. But you can get logs of the whole plasmashell using: killall
> plasmashell & kstart5 plasmashell

Here's a video of what I mean.
https://imgur.com/JXxIzVi
The launcher opens apps--including the file manager--but can't seem to open places or documents. I tried making a new user to see if the issue is due to something I did, but no dice. The issue persisted. Maybe I should try reinstalling the DE or a specific component? There are no broken packages as far as I know.
Comment 6 Anas-B 2022-05-30 18:35:08 UTC
(In reply to Bacteria from comment #4)
> > unless I click on the icon to the left.
> 
> Not sure what you mean here. Are you able to open the file if you click on
> the icon of search result?
> 
> > Is there a way for me to try and debug this?
> 
> Not sure. But you can get logs of the whole plasmashell using: killall
> plasmashell & kstart5 plasmashell

Hi, 
So I ended up finding the culprit behind this bug!

Before formatting my disk, I copied and pasted the content of my home folder into another drive. Then, after I set up my new installation, I copied and pasted that content wholesale back into the home folder, which is what screwed up the launcher's ability to access my files. 

Thanks you for taking the time to look into this.
Comment 7 Bacteria 2022-05-30 18:50:07 UTC
Oh so I guess the cached recent files must still be pointing to older locations of the system. 

Glad you figured it out.
Comment 8 Anas-B 2022-05-30 20:16:32 UTC
(In reply to Bacteria from comment #7)
> Oh so I guess the cached recent files must still be pointing to older
> locations of the system. 
> 
> Glad you figured it out.

Know what? Scrap that. I tried messing around with another new installation. It turns out, the GIMP English help documentation, for some reason, lists the dependency "wslu", and wslu is what screws up the launcher. 

Just... How? 

Anyway, thanks for the help! I can't believe I stuck with this only to end up on this bizarre conclusion.