Bug 468533 - Unable to install widgets from local file in the graphical interface
Summary: Unable to install widgets from local file in the graphical interface
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Widget Explorer sidebar (other bugs)
Version First Reported In: 5.27.4
Platform: Arch Linux Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-15 11:06 UTC by Mohammad K.
Modified: 2024-08-21 09:22 UTC (History)
3 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 Mohammad K. 2023-04-15 11:06:10 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open widget explorer
2. Click on "Get new Widgets" -> "Install Widget from Local File"
3. Select a plasmoid file

OBSERVED RESULT
It doesn't do anything.

EXPECTED RESULT
It should install the widget.

SOFTWARE/OS VERSIONS

Operating System: EndeavourOS 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.11-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook S15 X510UF
System Version: 1.0


ADDITIONAL INFORMATION

This appears in the journal log when that button in sellected:
```
That's just what appears after clicking it:
Apr 15 13:15:55 LittleWorld plasmashell[5641]: QObject::connect: No such signal Plasma::OpenWidgetAssistant::user1Clicked()
```
Comment 1 ratijas 2023-04-15 12:23:00 UTC
Can confirm on both Wayland and X11.

Open File dialog that opens also has other usability and visial issues, namely:

- title should be set as qindow title, not as a heading on top of window content — nothing else does that AFAIK;
- extra paddings around main content view should be removed. Notice how misaligned bottomtext field and dialog button box are;
- Filter field doesn't anything useful, it prevents plasmoids in *.tar.gz format from being selectable — need to clear filter manually first.
Comment 2 Nate Graham 2023-04-17 16:39:02 UTC
Yes, the file dialog here is some kind of custom thing wrapped in a wrapper that seems unnecessary. I think we could port it to just use QFileDialog.
Comment 3 Niccolò Venerandi 2024-08-21 09:22:20 UTC
This dialog has been ported to QFileDialog, and installing .plasmoid files seems to be working fine on master. Let's keep https://bugs.kde.org/show_bug.cgi?id=486108 to track the inability to install .tar.gz / .zip files.