|
Lines 1-5
Link Here
|
| 1 |
/* |
1 |
/* |
| 2 |
Copyright 2016 Gleb Popov <6yearold@gmail.com> |
2 |
Copyright 2016-2022 Gleb Popov <6yearold@gmail.com> |
| 3 |
|
3 |
|
| 4 |
Redistribution and use in source and binary forms, with or without modification, |
4 |
Redistribution and use in source and binary forms, with or without modification, |
| 5 |
are permitted provided that the following conditions are met: |
5 |
are permitted provided that the following conditions are met: |
|
Lines 32-37
Link Here
|
| 32 |
#include <QDBusConnectionInterface> |
32 |
#include <QDBusConnectionInterface> |
| 33 |
#include <QDBusMessage> |
33 |
#include <QDBusMessage> |
| 34 |
#include <QProcess> |
34 |
#include <QProcess> |
|
|
35 |
#include <QStandardPaths> |
| 35 |
#include <QDir> |
36 |
#include <QDir> |
| 36 |
|
37 |
|
| 37 |
#include <sys/param.h> |
38 |
#include <sys/param.h> |
|
Lines 143-149
Link Here
|
| 143 |
} |
144 |
} |
| 144 |
else if(filesystem == "ntfs") |
145 |
else if(filesystem == "ntfs") |
| 145 |
{ |
146 |
{ |
| 146 |
mountProg = QStringLiteral("ntfs-3g"); |
147 |
mountProg = QStandardPaths::findExecutable("ntfs-3g"); |
| 147 |
} |
148 |
} |
| 148 |
else if(filesystem == "cd9660") |
149 |
else if(filesystem == "cd9660") |
| 149 |
{ |
150 |
{ |
|
Lines 151-160
Link Here
|
| 151 |
} |
152 |
} |
| 152 |
else if(filesystem == "ext2fs") |
153 |
else if(filesystem == "ext2fs") |
| 153 |
{ |
154 |
{ |
| 154 |
mountProg = QStringLiteral("fuse2fs"); |
155 |
mountProg = QStandardPaths::findExecutable("fuse2fs"); |
| 155 |
|
156 |
|
| 156 |
args << QStringLiteral("-o") << (QStringLiteral("uid=") + QString::number(uid)); |
157 |
if (BsdisksConfig::get().PreferNativeExt2 || mountProg.isEmpty()) |
| 157 |
args << QStringLiteral("-o") << QStringLiteral("allow_other"); |
158 |
{ |
|
|
159 |
mountProg = QStringLiteral("/sbin/mount"); |
| 160 |
args << QStringLiteral("-t") << QStringLiteral("ext2fs"); |
| 161 |
args << QStringLiteral("-o") << QStringLiteral("async"); |
| 162 |
} |
| 163 |
else |
| 164 |
{ |
| 165 |
args << QStringLiteral("-o") << (QStringLiteral("uid=") + QString::number(uid)); |
| 166 |
args << QStringLiteral("-o") << QStringLiteral("allow_other"); |
| 167 |
} |
| 158 |
} |
168 |
} |
| 159 |
else if(filesystem == "exfat") |
169 |
else if(filesystem == "exfat") |
| 160 |
{ |
170 |
{ |