D7341: [KDesktopPropsPlugin] Create destination directory if it doesn't exist

Wolfgang Bauer noreply at phabricator.kde.org
Wed Aug 16 06:59:05 UTC 2017


wbauer created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  If the directory doesn't exist, applying the changes will fail with "Could not save properties. You do not have sufficient access to write to xxx".

TEST PLAN
  Open the file associations dialog, select some file type and choose an associated application that has its .desktop file in a subfolder of /usr/share/applications/ (e.g. on openSUSE, all KDE4 applications install it to /usr/share/applications/kde4/). Make sure that the corresponding folder ~/.local/share/applications/kde4/ doesn't exist.
  Click on "Edit...", change something on the "Program" tab (e.g. the command to execute), and click on "OK".
  
  The directory ~/.local/share/applications/kde4/ is created now and the changes are saved correctly.
  Before you got an error dialog and the changes were lost.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D7341

AFFECTED FILES
  src/widgets/kpropertiesdialog.cpp

To: wbauer, dfaure
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170816/2d4da262/attachment.html>


More information about the Kde-frameworks-devel mailing list