D24996: Create directory when saving the menu file

Wolfgang Bauer noreply at phabricator.kde.org
Mon Oct 28 07:24:05 GMT 2019


wbauer created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
wbauer requested review of this revision.

REVISION SUMMARY
  Commit 0bf70655 <https://phabricator.kde.org/R103:0bf70655292d801eaf3804f695b98e2cdc633423> ported kmenuedit away from KStandardDirs.
  But unlike KStandardDirs, QStandardPaths doesn't guarantee that the target directory actually exists, therefore saving the menu file failed if ~/.config/menus/ wasn't there already.
  
  BUG: 413079

TEST PLAN
  Delete ~/.config/menus/ if it exists, run kmenuedit and create a new entry, click on "Save".
  The menu is saved successfully now (~/.config/menus/ is being created), and there's no error message anymore that the file couldn't be written.

REPOSITORY
  R103 KMenu Editor

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

AFFECTED FILES
  menufile.cpp

To: wbauer
Cc: dfaure, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191028/d87fdb7b/attachment.html>


More information about the Plasma-devel mailing list