Commit Graph

1284 Commits

Author SHA1 Message Date
Andrius Štikonas d0bfbd2d4b Allow selecting properties using keyboard and mouse.
Properties in Dialog and Partition properties dialogs should now
be selectable.

BUG: 422192
2020-05-28 21:18:52 +01:00
l10n daemon script 50f0827df6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-03-25 06:42:37 +01:00
Andrius Štikonas 4106ed78fd
Port away from deprecated IconSize method in the remaining dialogs. 2020-03-22 01:10:35 +00:00
Andrius Štikonas ae711eb12b Port away from deprecated IconSize method. 2020-03-15 23:16:09 +00:00
l10n daemon script 72cdc794df SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-02-06 05:38:22 +01:00
l10n daemon script c85809b372 GIT_SILENT made messages (after extraction) 2020-02-06 02:48:49 +01:00
l10n daemon script 702c4ffd27 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-01-20 05:46:17 +01:00
Yuri Chornoivan dcc665cc27 Fix minor EBN issues 2019-12-09 18:33:04 +02:00
l10n daemon script 551b53ea9c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-12-08 05:22:17 +01:00
Andrius Štikonas 910de2a772 Merge partition manager toolbars into one.
BUG: 412376
2019-10-05 11:21:14 +01:00
Andrius Štikonas dd0df390da Port away from deprecated QTreeWidget::setFirstItemColumnSpanned. 2019-09-27 23:09:05 +01:00
Nate Graham 68d8c34535 Use non-pixmap colorful icons from the icon theme in settings window's sidebar
Summary:
This patch changes the icons in the settings' window's sidebar to be all colorful, in
conformance with T10165 specifically, and the new #consistency goal more generally.

It also cleans up the code a tiny bit by using built-in constructor functionality to set
icons from the icon theme rather than leaving the icon blank in the constructor and then
setting it later.

Test Plan:
Before: {F7449955}
After: {F7449956}

Reviewers: #vdg, #kde_partition_manager, stikonas, ndavis

Reviewed By: #vdg, #kde_partition_manager, stikonas, ndavis

Maniphest Tasks: T10165

Differential Revision: https://phabricator.kde.org/D24272
2019-09-27 15:21:23 -06:00
Caio Jordão Carvalho a0ce2ecbbe Including credits to Caio in aboutData 2019-09-18 00:03:19 +00:00
l10n daemon script a8cc4a448d GIT_SILENT made messages (after extraction) 2019-09-05 02:45:08 +02:00
l10n daemon script 36a38057fa SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-08-13 05:20:27 +02:00
l10n daemon script eca2be8f0e GIT_SILENT made messages (after extraction) 2019-08-13 02:57:27 +02:00
Shubham Jangra 7c8e8f18e5 Add Minix Filesystem
Summary: {F6878459}

Reviewers: #kde_partition_manager, stikonas, cjlcarvalho

Reviewed By: #kde_partition_manager, stikonas, cjlcarvalho

Subscribers: #kde_partition_manager

Tags: #kde_partition_manager

Differential Revision: https://phabricator.kde.org/D21653
2019-06-09 00:02:12 +05:30
l10n daemon script a558641bf6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-05-03 05:51:44 +02:00
Andrius Štikonas a5652e604e
Update copyright year in about dialog. 2019-05-01 00:35:15 +01:00
l10n daemon script 0403d5cf4a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-04-23 06:06:30 +02:00
l10n daemon script bfd12a1ba1 GIT_SILENT made messages (after extraction) 2019-04-23 03:19:13 +02:00
l10n daemon script b83ddced49 GIT_SILENT made messages (after extraction) 2019-03-10 03:11:37 +01:00
Andrius Štikonas a6861bf202 When importing partition table, pass the flags to Partition class.
Note, this is not enough for flags to work. We need to run a job to set flags.

CCBUG: 400331
2019-02-28 00:16:50 +00:00
Andrius Štikonas cf513b9873 Use explicit class method overrides. 2019-02-28 00:16:32 +00:00
Andrius Štikonas 730b2a9992 Fix race condition in reading fstype on partition table import.
Thanks to Christoph Vogtländer for reporting and fixing.

BUG: 400330
2019-02-27 23:15:17 +00:00
l10n daemon script 0e714dee65 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-02-10 05:24:10 +01:00
Andrius Štikonas 98d59e69ff
Use scoped enums for PartitionTable::Flag. 2019-02-10 01:30:02 +00:00
Andrius Štikonas 1d86260ad5
Use strongly typed enum for Capacity::Unit. 2019-02-10 00:50:12 +00:00
Andrius Štikonas a5e8d318d0 Add support for Apple File System (APFS). 2019-01-13 17:52:59 +00:00
Andrius Štikonas 6f1ca2cca9 Add BitLocker support.
BUG: 392892
2019-01-13 02:39:36 +00:00
l10n daemon script 64b7108974 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-01-01 05:27:06 +01:00
l10n daemon script a3e2f9bd48 GIT_SILENT made messages (after extraction) 2019-01-01 02:56:40 +01:00
Yuri Chornoivan 7e47ebe0a2 Fix minor typo 2018-12-09 20:38:44 +02:00
l10n daemon script 033651f422 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-12-03 05:30:16 +01:00
Varun Patel beed97ee84 Updated SMART widget GUI to better display SMART info.
Repositioned information and resized window to clearly display information.

BUG: 401230
Differential Revision: https://phabricator.kde.org/D17129
2018-11-24 20:17:47 +00:00
Andrius Štikonas 58cfa4b2bb Adjust whitespace. 2018-10-28 21:27:52 +00:00
Andrius Štikonas 9e0ae352f5 Set QApplication Window Icon.
Otherwise Help->About KPMcore dialog has no icon.

BUG: 397209
2018-10-28 21:21:42 +00:00
l10n daemon script 2a3ec0535d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-10-10 06:22:01 +02:00
l10n daemon script 78c53afd3d GIT_SILENT made messages (after extraction) 2018-10-10 03:56:52 +02:00
l10n daemon script 49611c3574 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-09-07 05:56:51 +02:00
Andrius Štikonas 78e7c7d52a Fix crash on exit.
If we do not delete ApplyProgressDialog, then it later emits
finished which in turn attempts to scanDevices even though kpmcore helper
is already stopped and QCA private key is deleted.
2018-09-01 22:34:46 +01:00
l10n daemon script c33067b3f5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-08-27 05:46:44 +02:00
l10n daemon script 37ebbd46ab SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-08-05 05:29:35 +02:00
l10n daemon script a4773460f0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-07-26 05:44:16 +02:00
Andrius Štikonas e2b31f81fb Merge branch 'kauth' 2018-07-25 09:38:54 +00:00
Caio Carvalho f21b42d10e Adding PVs that are member of VGs that are going to be deleted soon in CreateVolumeGroupDialog and ResizeVolumeGroupDialog. Avoiding segfault because of devices partition tables in CreateVolumeGroupDialog and ResizeVolumeGroupDialog. 2018-07-23 13:38:30 -03:00
Caio Carvalho 15f19e818c RAID level should not be showed when the device is inactive. (i.e. it's not loaded by mdadm). 2018-07-16 15:51:16 -03:00
Andrius Štikonas 773cbf6d3b Newly created / to be removed LVM PVs in Resize VG dialog
Port changes from Create VG dialog:
Commit: af9fbe8a4f
2018-07-16 00:20:00 +01:00
Caio Carvalho b68db554f6 Operations should check LvmDevice::s_DirtyPVs instead of check pending CreateVolumeGroupOperations to search for newly LVM PVs. 2018-07-15 19:43:44 -03:00
Andrius Štikonas aa6f4afead Use the same whitespace as rest of the file. 2018-07-15 22:33:37 +01:00
Caio Carvalho b5eaa4aadc Adding support for detecting linux_raid_member file system. 2018-07-15 17:40:01 -03:00
Andrius Štikonas 65eb5178f1 Static cast should be sufficient
We manually check device type jsut before cast
2018-07-12 09:58:50 +00:00
Caio Carvalho a606306e79 Showing SoftwareRAID device properties and allowing to create RAID device partition table. 2018-07-11 12:23:10 -03:00
Andrius Štikonas e7589702b9 Fix a compile warning. 2018-07-08 10:57:16 +01:00
Andrius Štikonas cc43e8b706 Fix out of bounds access.
BUG: 396099
2018-07-07 14:12:25 +01:00
René J.V. Bertin ade8676d23 avoid nullptr dereference when no devices are found
Differential revision: https://phabricator.kde.org/D13445
2018-06-09 14:27:35 +02:00
Andrius Štikonas 30815be85c Remove Kdelibs4ConfigMigrator
Config is no longer stored in root home folder, so migration cannot be done as
we have no access to root folder when running as unprivileged user.
2018-06-08 11:23:06 +01:00
Caio Carvalho 5a849d802b Checking if a new partition is targeted by a new VG through LvmDevice::s_DirtyPVs list instead of searching for a CreateVolumeGroupOperation targeting this new partition. 2018-05-28 16:24:31 -03:00
Caio Carvalho dfca46250e - Passing list of pending operations as argument to ResizeOperation::canGrow.
- Access LVM::pvList through static list attribute.
2018-05-09 04:15:28 -03:00
Caio Carvalho 556a5a22ba Don't delete, shrink or move LVM PVs that are being targeted by CreateVolumeGroupOperations. 2018-05-07 22:16:58 -03:00
Caio Carvalho 7d5d1f8f8a Listing newly created encrypted LVM PVs in Create Volume Group dialog. 2018-05-07 20:21:14 -03:00
Caio Carvalho d9b4ec0ce0 Disabling checkBoxEncrypt in Create New Partition dialog when cryptsetup tool is not found. 2018-05-07 19:22:20 -03:00
Caio Carvalho af9fbe8a4f - Allow creating LVM VG with PVs that are going to be created in OperationStack.
- Check if there is another CreateVolumeGroupOperation with the LVM PV before listing it in the LVM VG creation widget.
- Disallow creating VG with some PV that will be deleted.
2018-05-03 20:50:42 -03:00
l10n daemon script 48fcb9775a GIT_SILENT made messages (after extraction) 2018-04-28 03:38:26 +02:00
Andrius Štikonas 2482eba7de Do not allow closing ScanProgressDialog
BUG: 393275
2018-04-19 14:29:22 +03:00
Andrius Štikonas 3054fa1599 Update copyright year. 2018-04-16 22:25:59 +03:00
Andrius Štikonas 2846f9adba Set KAuth parent widget. 2018-04-15 01:35:55 +03:00
Andrius Štikonas 93f18ebd9f Show MainWindow before KAuth dialog. 2018-04-15 01:03:41 +03:00
Andrius Štikonas 1344021e1b Move KAuth helper setup code to ExternalCommand class. 2018-04-14 23:56:10 +03:00
Andrius Štikonas 200bb23b67 Disable ok button when it is not visible.
Otherwise it was possible to close the window before all cleanup is done
and later crash the program.
2018-04-13 16:05:13 +03:00
Andrius Štikonas c0385aca3c CoreBackendManager -> CoreBackendManager::self(). 2018-04-13 14:25:11 +03:00
Andrius Štikonas e9ac1cf977 Adjust to kpmcore enum changes. 2018-04-09 15:14:48 +01:00
Andrius Štikonas 96693a8455 Switch Device::Type enum to enum class. 2018-04-09 02:58:03 +01:00
Andrius Štikonas 2137fa58b8 Explicitely specify the scope of FileSystem::Type enum. 2018-04-07 19:54:55 +01:00
Andrius Štikonas 3c9d85d842 Use enums instead of ints when choosing filesystem color in KConfig. 2018-04-07 19:05:05 +01:00
Andrius Štikonas f42da524fc enum -> enum class. 2018-04-05 22:00:06 +01:00
Andrius Štikonas 3eae84de13 Adapt to kpmcore API changes std::array->std::vector. 2018-04-05 21:54:55 +01:00
Huzaifa Faruqui bf65a186bd Removed config option to apply operations as non-root 2018-04-04 00:31:14 +05:30
l10n daemon script 8c8e8f8b47 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-04-03 05:28:21 +02:00
l10n daemon script 8b355027e5 GIT_SILENT made messages (after extraction) 2018-04-03 03:29:14 +02:00
Andrius Štikonas 3aed3ccd93 Remove obsolete CHS information. 2018-04-02 14:01:43 +01:00
Andrius Štikonas 73fef8d69c Revert "Unnecessary use of a pointer for MainWindow."
This reverts commit f33695eb2f.
2018-04-02 13:01:56 +01:00
Andrius Štikonas f33695eb2f Unnecessary use of a pointer for MainWindow. 2018-04-02 01:25:21 +01:00
Andrius Štikonas 6f8cde5520 Use for loop with iterators when removing mount points. 2018-04-01 18:47:45 +01:00
Andrius Štikonas b38db099e0 Merge branch 'master' into kauth 2018-03-31 20:29:15 +01:00
Abhijeet Sharma e54510b881 Multiple mount point support in EditMountPointDialog
Multiple mount points can also be modified and removed from fstab.

Differential Revision: https://phabricator.kde.org/D11632
2018-03-31 20:27:05 +01:00
Andrius Štikonas 2bbf89af28 Fix mutex logic for cancelling operations. 2018-03-31 20:17:38 +01:00
Andrius Štikonas c40a729ba7 Do not allow the second instance of Partition Manager.
BUG: 365882
2018-03-24 22:26:45 +00:00
Caio Carvalho 079e423abd - Including tooltip for SMART attribute description. 2018-03-24 16:16:50 -03:00
Andrius Štikonas d37c0ef9ce Revert "Disallow executing KDE Partition Manager as root."
This reverts commit cfa53f6d3c.
2018-03-22 20:13:58 +00:00
Andrius Štikonas cfa53f6d3c Disallow executing KDE Partition Manager as root.
Summary:
Running GUI applications as root is a huge security risk. Especially
the X server is not secured for that. Non-root applications can easily
interact with a root running application and thus try to exploit simple
bugs in either kate/kwrite itself or in the underlying libraries such
as Qt, XLib or xcb.

On Wayland the situation can be considered worse as the compositor is
running as the normal user and is not protected to handle root windows.
It can be rather trivial to attack the root running application from the
compositor through interfaces such as scripting. This is not in the aim
of the compositors to protect against.

This change introduces a check whether the application is started as
root before any interaction with X or Wayland happens, that is prior to
creating the QApplication. If it is detected that we run as root, we
exit and print an information about how to properly edit an application
in kwrite/kate as root. The text is deliberatly not translated to keep
the threat from running as root as low as possible.

See also Differential Revision: https://phabricator.kde.org/D4634
2018-03-22 17:39:04 +00:00
abhijeet sharma a38a6cd35d Fixed the "remove existing mount point" bug
Summary:
The QString "contains method" is also searching for empty QStrings.
Due to this all entries in /etc/fstab were removed . After this patch it is
searching for only non-empty strings in removeMountPoint() function.

Reviewers: stikonas

Reviewed By: stikonas

Tags: #kde_partition_manager

Differential Revision: https://phabricator.kde.org/D11542
2018-03-22 01:29:13 +05:30
Andrius Štikonas cc73b6c9ce Move external command helper stopping code to kpmcore. 2018-03-21 20:51:10 +01:00
Andrius Štikonas 62a3b57c2d Remove --dontsu command line option. 2018-03-19 16:24:49 +01:00
Andrius Štikonas a1a535cb03 Remove checkPermissions code. 2018-03-19 02:45:18 +01:00
Andrius Štikonas 60e86c3ad6 Stop ExternalCommandHelper before quiting the application. 2018-03-19 02:34:30 +01:00
Andrius Štikonas 98209f90bc No need to explicitely set enum values. 2018-03-03 16:39:52 +00:00
Abhijeet Sharma be07085500 Add possibility to remove an existing mount point
User is able to remove an existing Mount point via
Partition -> Edit Mount Point -> Remove.

Differential Revision: https://phabricator.kde.org/D10514
2018-03-03 16:37:58 +00:00
l10n daemon script 7dd9e17a8c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2018-03-03 05:26:20 +01:00
l10n daemon script f227a81ff4 GIT_SILENT made messages (after extraction) 2018-03-03 03:19:01 +01:00