[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-09-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=458400

Nate Graham  changed:

   What|Removed |Added

 CC||olib...@outlook.com

--- Comment #5 from Nate Graham  ---
*** Bug 459077 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-09-08 Thread Alexander Wilms
https://bugs.kde.org/show_bug.cgi?id=458400

--- Comment #4 from Alexander Wilms  ---
I submitted a merge request:
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1125

I didn't test it in a Plasma session, but the unit test passes.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-09-01 Thread Alexander Wilms
https://bugs.kde.org/show_bug.cgi?id=458400

--- Comment #3 from Alexander Wilms  ---
I'm trying, but I don't know how to get a relative path from two absolute
paths:
Apparently, the QDir type is not available in QML and in Javascript it's
usually done with a NodeJS module.

function getDesktopURI(fileURI) {
var absoluteDesktopURI =
StandardPaths.writableLocation(StandardPaths.DesktopLocation)
//  var relativeURI = absoluteDesktopURI.relativeFilePath(fileURI) <- QDir
method
//  var desktopURI = relativeURI.replace("file://","desktop://")
console.log(fileURI)
console.log(absoluteDesktopURI)
//  console.log(relativeURI)

//var path = require('path') <- NodeJS module
//console.log(path.relative('/foo/bar/baz', '/foo')) 
return fileURI
}

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-09-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=458400

--- Comment #2 from Nate Graham  ---
Nice, wanna fix it?

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-08-31 Thread Alexander Wilms
https://bugs.kde.org/show_bug.cgi?id=458400

--- Comment #1 from Alexander Wilms  ---
Found the line of code which would need to be changed:
https://invent.kde.org/plasma/plasma-desktop/-/blob/master/containments/desktop/package/contents/ui/ConfigLocation.qml#L167

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 458400] Folder View widget shows .desktop files' filenames instead of desktop entry's Name property when using user-specified path

2022-08-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=458400

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org
 Ever confirmed|0   |1
   Severity|normal  |minor
 Status|REPORTED|CONFIRMED

-- 
You are receiving this mail because:
You are watching all bug changes.