Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb51442_fix_guest' into 'master'
[buteo-mtp] Add %h to export home directory. Contributes to JB#51442

See merge request mer-core/buteo-mtp!37
  • Loading branch information
Tomin1 committed Oct 28, 2020
2 parents 61c4067 + 001a5ae commit e797693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -136,6 +136,10 @@ QList<StoragePlugin *>FSStoragePluginFactory::create(quint32 storageId)
if (pattern.contains("%u")) {
pattern.replace("%u", QProcessEnvironment::systemEnvironment().value("USER"));
}
// If path contains "%h" replace it with the current home directory
if (pattern.contains("%h")) {
pattern.replace("%h", QProcessEnvironment::systemEnvironment().value("HOME"));
}
QString description;
if (!pattern.contains('*') && !pattern.contains('?')) {
description = storage.attribute("description");
Expand Down
2 changes: 1 addition & 1 deletion rpm/buteo-mtp-qt5.spec
@@ -1,5 +1,5 @@
Name: buteo-mtp-qt5
Version: 0.8.0
Version: 0.8.3
Release: 1
Summary: MTP library
License: BSD and LGPLv2
Expand Down

0 comments on commit e797693

Please sign in to comment.