Bug 490673 - Folder View widget's title feature is missing in Plasma 6
Summary: Folder View widget's title feature is missing in Plasma 6
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 6.1.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-07-22 21:45 UTC by Emmett Culley
Modified: 2024-07-31 22:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.4
Sentry Crash Report:


Attachments
folderview dialog location panel (48.71 KB, image/avif)
2024-07-27 14:14 UTC, Emmett Culley
Details
Foldereview location panel Fedora 40 (55.72 KB, image/avif)
2024-07-27 14:20 UTC, Emmett Culley
Details
old and new folder views (82.76 KB, image/avif)
2024-07-27 14:25 UTC, Emmett Culley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmett Culley 2024-07-22 21:45:11 UTC
SUMMARY
When I create a new folder view, there is no way to name the view.  In earlier versions you could name the view and that name would appear centered at the top of the view.  Now you see the path to the directory under the home directory.

All folder views that already exist still retain their names as descriipbd above, but if I open the config for one of those and save, the name is replaced with the path.  Still no way to name the folder view.

STEPS TO REPRODUCE
1.  Add folder view widget
2.  Note that when selecting a custom location that there is no way to name the view.
3.  When applying, the path is displayed at the top.  What make it even worse, there is no way to see the entire path, so the legend is useless.

OBSERVED RESULT
No way to name folder view

EXPECTED RESULT
I should be able to ener a name to describe the folder view.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.30
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Kernel version 6.9.8-200.fc40
AMD Ryzen 9 5950x 16 core
AMD Radeon RX 550
Comment 1 Nate Graham 2024-07-26 23:01:33 UTC
How exactly were you able to name a Folder View widget in the past? I'm not recalling that we ever hard this feature. At least, not to my knowledge in the past 7 years.
Comment 2 Emmett Culley 2024-07-27 14:14:18 UTC
Created attachment 172037 [details]
folderview dialog location panel

This is a screenshot from a Fedora 31 KVM inage, which I keep to allow me to test docker images with docker.

Note that there is a title field.   In that dropdown is "Custom title".  Selecting that allows you to enter text.  That text then appears centered at the top of the folder view.
Comment 3 Emmett Culley 2024-07-27 14:20:09 UTC
Created attachment 172038 [details]
Foldereview location panel Fedora 40

Note that there is no  Title: dropdown.  

What is interesting is that if I don't edit a folder view, the title I entered in an earlier version of Fedora,  I assume with KDE 5, is still displayed in the folder view.

I suppose I could edit a new folder views .desktop file and duplicate what I see in  an older flder view, but I consider it a bug that I am not able to name a folderview.  

I have multiple folder views on my desktop as I have dolphin kio instances that open a file manager on remote systems and the title tells me the  colocation or customer name.
Comment 4 Emmett Culley 2024-07-27 14:25:15 UTC
Created attachment 172039 [details]
old and new folder views

You can see in the third screen shot the difference.  I am virtually never insterested in the path to the folder view.
Comment 5 Emmett Culley 2024-07-27 15:06:46 UTC
I did find that I can set the title text in a folderview.

labelMode=3
labelText=AISO

In the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc, adding the above lines to the folderview item, then logging out then in, the flder view now has the expected title.

OK, so this is a work around for a badly, in my opinion, needed feature that is missing in KDE 6.
Comment 6 Nate Graham 2024-07-29 18:22:43 UTC
Aha! Can confirm the issue. The feature exists, but has gotten hidden due to a conditional in the code inappropriately evaluating to false.
Comment 7 Nate Graham 2024-07-29 18:39:53 UTC
Specifically, this line:

https://invent.kde.org/plasma/plasma-desktop/-/blob/master/containments/desktop/package/contents/ui/ConfigLocation.qml?ref_type=heads#L22

 I assume `plasmoid` needs to be changed to something else, but what? I tried capital P Plasmoid but that didn't work as expected.
Comment 8 Emmett Culley 2024-07-29 20:50:40 UTC
I wish I could help :-)
Comment 9 Nate Graham 2024-07-31 22:55:41 UTC
Marco Knew! Fixed by him with https://invent.kde.org/plasma/plasma-desktop/-/commit/522ab0b91c5776c6cde72d2e0cb8df455496358a in Plasma 6.1.4.