Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

fix: check path existence #55

Merged
merged 1 commit into from
Apr 22, 2019

Conversation

BLumia
Copy link
Contributor

@BLumia BLumia commented Apr 20, 2019

Fix #54

from: QStandardPaths::writableLocation:

Note: The storage location returned can be a directory that does not exist; i.e., it may need to be created by the system or the user.

For linux, QStandardPath read the ~/.config/user-dirs.dirs to get the QStandardPaths::DesktopLocation path and the returned path may not exist, so we need manually check / create the path first.

Change-Id: I5d5c043a616aef787dc4e8b6ed3f36f7605c75eb
@BLumia BLumia merged commit d8431cc into martyr-deepin:master Apr 22, 2019
@BLumia BLumia deleted the fix-check-path-exist branch April 22, 2019 01:42
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Screenshot not being saved when there is no Desktop folder
2 participants