Commit 6a828b17 authored by Elvis Angelaccio's avatar Elvis Angelaccio

kio_mtp: add write permissions to root storage folder

Otherwise it's impossible to paste files there.

CCBUG: 366795

Differential Revision: https://phabricator.kde.org/D4839
parent 6014a6ef
......@@ -334,7 +334,7 @@ void getEntry(UDSEntry &entry, const LIBMTP_devicestorage_t *storage)
entry.insert(UDSEntry::UDS_NAME, storageName);
entry.insert(UDSEntry::UDS_ICON_NAME, QLatin1String("drive-removable-media"));
entry.insert(UDSEntry::UDS_FILE_TYPE, S_IFDIR);
entry.insert(UDSEntry::UDS_ACCESS, S_IRUSR | S_IRGRP | S_IROTH | S_IXUSR | S_IXGRP | S_IXOTH);
entry.insert(UDSEntry::UDS_ACCESS, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
entry.insert(UDSEntry::UDS_MIME_TYPE, QLatin1String("inode/directory"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment