Add support for UDF file system.

This commit is contained in:
Andrius Štikonas 2017-08-17 11:26:14 +03:00
parent 591b41e074
commit 4b68a0cba0
3 changed files with 19 additions and 1 deletions

View File

@ -648,6 +648,22 @@
<item row="7" column="4">
<widget class="KColorButton" name="kcfg_fileSystemColorCode25"/>
</item>
<item row="7" column="6">
<widget class="QLabel" name="textLabel_30">
<property name="text">
<string>udf:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item row="7" column="7">
<widget class="KColorButton" name="kcfg_fileSystemColorCode26"/>
</item>
</layout>
</widget>
</item>

View File

@ -60,7 +60,7 @@
</entry>
<entry key="fileSystemColorCode$(colorNumber)" type="Color">
<label context="@label">File system colors</label>
<parameter name="colorNumber" type="UInt" max="25"/>
<parameter name="colorNumber" type="UInt" max="26"/>
<!-- numbers correspond to the enum in kpmcore/fs/filesystem.h -->
<default param="0">220,205,175</default> <!-- unknown -->
<default param="1">187,249,207</default> <!-- extended -->
@ -88,6 +88,7 @@
<default param="23">242,155,104</default> <!-- nilfs2 -->
<default param="24">160,210,180</default> <!-- lvm2 pv -->
<default param="25">255,170,0</default> <!-- f2fs -->
<default param="26">170,120,255</default> <!-- udf -->
</entry>
<entry key="showMenuBar" type="Bool">
<label context="@label">Show the application's menu bar</label>

View File

@ -101,6 +101,7 @@ bool checkPermissions()
argList += QCoreApplication::arguments().join(QStringLiteral(" ")) + QStringLiteral(" --dontsu");
qDebug() << "Executing: " << suCmd << argList;
if (QProcess::execute(suCmd, QStringList(argList)) == 0)
return false;
}