Andrius Štikonas
ad888767bb
Use QStringLiteral.
1 week ago
Oxalica --
eea84fb605
Fix out of bounds read when parsing fstab.
Some fstab files only have 3 fields and mount options are completely omitted.
1 week ago
Andrius Štikonas
36dfae351f
Add initial support for dosfstools 4.2.
Empty labels are not allowed anymore.
One can reset them with -r flag but that is not supported in older
dosfstools. So for now we just manually set label to NO_LABEL.
BUG: 432941
1 week ago
Michael Weghorn
813e574001
Wipe existing signatures when creating partition table
As the sfdisk man page says on the option '--wipe' that
specifies whether or not to wipe signatures in order
to avoid collisions:
> When this option is not given, the default is auto,
> in which case signatures are wiped only when in interactive mode
but sfdisk is not run in interactive mode here, since
stdin does not refer to a terminal, and the sfdisk
man page says:
> It [i.e. sfdisk] runs in interactive mode if executed on terminal
> (stdin refers to a terminal).
Therefore, explicitly pass the '--wipe=always' option to
sfdisk so that old signatures are wiped when a new partition
table is created.
Bug: 431628
1 month ago
Andrius Štikonas
31706cffdc
Fix out of bounds read when parsing fstab.
BUG: 429191
1 month ago
Andrius Štikonas
06f15334ec
Add support for exfatprogs
Bug: 430907
2 months ago
l10n daemon script
338811601b
GIT_SILENT made messages (after extraction)
2 months ago
Andrius Štikonas
a06d4ba0f7
Return QByteArray instead of bool in readData.
3 months ago
Andrius Štikonas
73da1bc514
Only allow using ReadData on block devices.
3 months ago
Andrius Štikonas
b0e5fa66c4
Add an explicit ReadData method to polkit helper instead of relying on copyblocks with empty target device.
3 months ago
Andrius Štikonas
502ebc0474
Remove declaration of non-existing method.
3 months ago
Andrius Štikonas
04a095a542
Simplify find syntax.
3 months ago
Andrius Štikonas
5da47c26e9
Replace array with unordered set for better performance.
3 months ago
Andrius Štikonas
551654de0d
Also rename source/targetFirstByte ot offsets in function declarations.
3 months ago
Andrius Štikonas
d34b617272
Rename source/targetFirstByte to source/targetOffset.
Add some diagrams explaining difference between
source/targetOffsets and read/writeOffset.
3 months ago
Andrius Štikonas
ee0a1e1b41
Add a limit on the amount of data that can be passed back via DBus.
3 months ago
Andrius Štikonas
c556f39064
Add a limit on blocksize to prevent out-of-memory situation.
3 months ago
Andrius Štikonas
9dd38744c5
Add a comment about auth_admin_keep.
3 months ago
Andrius Štikonas
4fa91d75f3
externalcommandhelper: Do not commit suicide when attempting to run non whitelisted command.
Simply returning failure should be sufficient.
3 months ago
Andrius Štikonas
32d146eed3
externalcommandhelper: Make copy direction an enum.
3 months ago
Andrius Štikonas
d16d9e8019
Do not reuse QProcess object in externalcommandhelper for different invocations.
3 months ago
Andrius Štikonas
fae9f83451
Fix division by zero.
3 months ago
Friedrich W. H. Kossebau
6e8424bed6
Clean up include dirs
Move include of BLKID_INCLUDE_DIRS into scope it is used.
UUID_INCLUDE_DIRS is unused, left over from before partitionmanager
switched away from libuuid in 26e7f9d7ef
.
Explicit Qt5Core_INCLUDE_DIRS no longer needed.
src/ is automatically available for kpmcore target, also exposed in
its build link interface.
3 months ago
Friedrich W. H. Kossebau
5413e696d3
Generate libpartitionmanagerexport.h
3 months ago
Friedrich W. H. Kossebau
07e5a3ac28
Make plugins compatible to latest KPluginFactory code
That one uses std::is_constructible<impl, QObject *, const QVariantList &>
which will fail for our current plugin constructors due to being private
and with only friend class KPluginFactory.
3 months ago
Andrius Štikonas
26acd7c10d
Remove extra semicolon.
3 months ago
Andrius Štikonas
2e91730f7a
Fix parsing fstab mountpoints when they contain spaces or tabs.
If the name of the mount point contains spaces or tabs these
can be escaped as `\040' and '\011' respectively.
BUG: 428932
3 months ago
Andrius Štikonas
2382b9e1c5
Rename d pointer to d_ptr to disambiguate from Device d.
3 months ago
Gaël PORTAY
82566e63e7
d-pointerize NewOperation class.
4 months ago
l10n daemon script
495b1d7c45
GIT_SILENT made messages (after extraction)
3 months ago
l10n daemon script
6f89a9886b
GIT_SILENT made messages (after extraction)
3 months ago
l10n daemon script
a42fbfa5e4
GIT_SILENT made messages (after extraction)
4 months ago
l10n daemon script
5b8b8d2228
GIT_SILENT made messages (after extraction)
4 months ago
Andrius Štikonas
3448815596
kpmcore does not ship .ui or .rc files.
4 months ago
l10n daemon script
b59f34aeb5
GIT_SILENT made messages (after extraction)
4 months ago
Andrius Štikonas
2c8d081357
reuse: Add SPDX info to src/util/org.kde.kpmcore.externalcommand.policy.
4 months ago
l10n daemon script
14777483a1
GIT_SILENT made messages (after extraction)
4 months ago
Andrius Štikonas
68fdf2fcf2
Use XmlMessages.sh for translations of polkit policy files.
4 months ago
Andrius Štikonas
19f78ef76a
Port away from qAsConst.
4 months ago
Andrius Štikonas
0c37cc54a6
Remove unnecessary semicolon (-Wpedantic).
4 months ago
Andrius Štikonas
ec3479f302
Add overrides to destructors.
4 months ago
Andrius Štikonas
85396708f4
Use Qt::SplitBehavior
Old version QString::SplitBehavious is now deprecated.
4 months ago
Andrius Štikonas
d3ebabb6cb
Move find_package to top level CMakeLists.txt.
4 months ago
Andrius Štikonas
cf5ff51832
Remove unused applicationinterface DBus interface.
4 months ago
Andrius Štikonas
e085ba9ed9
Do not link to KAuth. But there is still a build time dependency on kauth-policy-gen.
4 months ago
Andrius Štikonas
6cff70567b
Fix signals between helper and client.
4 months ago
Andrius Štikonas
cd4d9b1985
Rename helper interfaces.
4 months ago
Andrius Štikonas
a2ee82e021
Simplify createFile function, it was checking for authorization twice.
4 months ago
Andrius Štikonas
2dff59260c
Remove exit call from the helper. It is no longer used.
BUG: 412887
4 months ago
Andrius Štikonas
89bd4eb6c7
Store successful polkit authentication requests.
We need this to avoid multiple authentication requests when applying
long operations.
Otherwise, the user will have to authenticate after each job,
which can mean up to 4 password dialogs for some longer operations.
4 months ago