Review Request 121478: dolphin: add menu to SpaceInfo widget for detailled disk usage information
Gregor Mi
codestruct at posteo.org
Sun Dec 14 00:47:37 GMT 2014
> On Dec. 13, 2014, 7:20 p.m., Eike Hein wrote:
> > Instead of using findExecutable() calls I'd suggest to use KService, which is fast enough to query it every time the menu needs to be constructed and doesn't suffer the "Dolphin needs to be restarted" problem mentioned in the code. Using KService also makes it trivial to get internationalized application names out of the original .desktop files, instead of having redundant i18n() calls in Dolphin code which cause additional work for translators and complex coordination requirements (this is IMHO a blocker for this patch).
Thanks for the KService hint. I'll try it.
- Gregor
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121478/#review71932
-----------------------------------------------------------
On Dec. 13, 2014, 6:46 p.m., Gregor Mi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121478/
> -----------------------------------------------------------
>
> (Updated Dec. 13, 2014, 6:46 p.m.)
>
>
> Review request for Dolphin.
>
>
> Repository: kde-baseapps
>
>
> Description
> -------
>
> Adds a menu when left-clicked on the SpaceInfo widget in the status bar with the following entries:
>
> (1) KDiskFree
> (2) Filelight
> (3) Filelight device
> (4) Filelight location
>
> see screenshot: http://wstaw.org/m/2014/12/13/plasma-desktopqO2157.png
>
> Details on the menu entries:
>
> (1) starts KDiskFree (useful tool, hard to find when unknown by new user)
> (2) starts Filelight without parameters
> (3) starts Filelight with current mount point
> (4) starts Filelight with current location
>
> If KDiskFree or Filelight is not installed the corresponding menu action is disabled with a hint "[Not installed]".
>
>
> Diffs
> -----
>
> dolphin/src/statusbar/spaceinfotoolsmenu.cpp PRE-CREATION
> dolphin/src/statusbar/statusbarspaceinfo.h 5d571beba9b936c52dd3279e370c39a1bfd50827
> dolphin/src/statusbar/statusbarspaceinfo.cpp 046cbbb23072648aece5677defb1b9074baa9482
> dolphin/src/statusbar/spaceinfotoolsmenu.h PRE-CREATION
> dolphin/src/statusbar/spaceinfoexternaltools.h PRE-CREATION
> dolphin/src/CMakeLists.txt 8e13e97fe10674f16fd65ad808f151b09e6978a2
>
> Diff: https://git.reviewboard.kde.org/r/121478/diff/
>
>
> Testing
> -------
>
> Clicked all the menu entries and they work as described.
>
>
> Thanks,
>
> Gregor Mi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20141214/5cc4e023/attachment.htm>
More information about the kfm-devel
mailing list