Commit graph

143 commits

Author SHA1 Message Date
Ivailo Monev
4696a44ada ark: check for single folder archives when extracting and auto sub-folder option is on
if the archive is single folder and the directory exists ark will ask if
overwriting should be done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-18 23:51:23 +03:00
Ivailo Monev
c0c0f194bc ark: rework extraction dialog
less space used by the options, automatic sub-folder detection even for
single folder archive and handling of dot (".") as the returned sub-folder
name by the archive list job (libarchive quirck).

tested batch and non-batch extraction, with and without automatic
sub-folder detection but with tar.xz and .deb files only

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-18 03:08:36 +03:00
Ivailo Monev
ddcd646ea0 ark: use proper type for the return value of Kerfuffle::ExtractionDialog::destinationDirectory()
otherwise there are QString to KUrl to QString conversions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-18 03:07:30 +03:00
Ivailo Monev
bc2a235c3b ark: mark URL as modified in the part upon adding or deleting
required the following commit from kdelibs to actually save:
319ebf4d2089a167b2a9e1f746eb52cd54dec150

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 04:36:33 +03:00
Ivailo Monev
763d88a96d ark: remove redundant kDebug() calls
log nothing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 03:34:03 +03:00
Ivailo Monev
5cd80dddb1 ark: prepare for KCmdLineArgs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-16 01:38:03 +03:00
Ivailo Monev
a91ec41cc6 generic: adjust to KRun changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:22:20 +03:00
Ivailo Monev
c3f3bff65e generic: enable session management for most applications
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 09:34:22 +03:00
Ivailo Monev
3cf815c995 generic: adjust to KMimeType changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-04 20:19:23 +03:00
Ivailo Monev
677eeea1ae ark: pass the device to KMimeType::findByNameAndContent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 09:38:52 +03:00
Ivailo Monev
6260843dde generic: prepare for KuitSemantics changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-03 08:53:32 +03:00
Ivailo Monev
31edff16e9 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-23 08:02:39 +03:00
Ivailo Monev
e9e482b07a ark: replace command with teletype format in error message
actually the same

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 04:21:53 +03:00
Ivailo Monev
1fbe26542a ark: replace message with italic format in error message
actually the same

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 04:12:52 +03:00
Ivailo Monev
b9a927d3b9 generic: update package properties
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-11 11:05:20 +03:00
Ivailo Monev
89f0dbedc8 ark: correct comment and buffer size in Kerfuffle::ReadOnlyArchiveInterface::permissionsString()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-30 23:23:19 +02:00
Ivailo Monev
587602f0ca generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-24 01:22:36 +02:00
Ivailo Monev
cf2654a6de generic: drop kvkbd, krfb, krdc, kget, kcalc and qmlwallpapers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-20 12:41:14 +03:00
Ivailo Monev
b510355f1b generic: adjust to kparts changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 05:02:50 +03:00
Ivailo Monev
a533e0d19c generic: adjust to kparts changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 04:27:42 +03:00
Ivailo Monev
8feb5359d4 generic: create key sequence objects from the key enums
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 20:56:41 +03:00
Ivailo Monev
bef4cece61 generic: replace QLabel with the new KPixmapWidget class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 16:42:48 +03:00
Ivailo Monev
8a8aa4ea48 generic: add X-KDE-HasTrayOption to .desktop files
note that some applications (e.g. kvkbd, kget, kmix, ktimer, etc.) use
custom status notifier

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 16:58:51 +03:00
Ivailo Monev
1a09e7d437 generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 21:41:17 +03:00
Ivailo Monev
f9ca9dd0f9 generic: replace X-KDE-StartupNotify with StartupNotify
see the following commit in kde-workspace repo:
f1f6ae7a3ec35e289df1f45cd47e71bd3c696fbe

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 05:12:33 +03:00
Ivailo Monev
e7e2d636e1 ark: adjust to KLocalizedString changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-17 23:41:32 +03:00
Ivailo Monev
7af8047900 generic: remove dead and irrelevant links references
svn repository reference? good luck getting source code from there..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 16:01:25 +03:00
Ivailo Monev
db8a6a3842 generic: do not install kcfg files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 05:53:59 +03:00
Ivailo Monev
44a349b97d generic: adjust to kfile changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 03:12:02 +03:00
Ivailo Monev
17efba129e ark: log debug messages to special area 2023-06-20 10:01:34 +03:00
Ivailo Monev
200504c967 ark: implement session restoration
altough there are bits for that in main() the URL the part loaded was not
saved and restored when that had to happen, now it is

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 09:53:24 +03:00
Ivailo Monev
a4017a3a68 generic: preperations for kde-workspace changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 03:49:28 +03:00
Ivailo Monev
93e394f1ca generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:28:51 +03:00
Ivailo Monev
b6844782b2 generic: do not include quiet packages in the feature summary
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 19:30:26 +03:00
Ivailo Monev
05397d9ddf generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:39:16 +03:00
Ivailo Monev
18861df1f3 generic: adjust to konq library changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 23:32:22 +03:00
Ivailo Monev
3a91a1580d generic: remove QT_KATIE definition checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 14:45:37 +03:00
Ivailo Monev
476eb884d7 ark: remove now bogus compressAsRar popup menu action
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 15:46:27 +03:00
Ivailo Monev
8f5472fb21 ark: drop CLI interface and rar plugin
hint: don't do interface on top of CLI tools, it is going to break under
your nose

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 15:34:02 +03:00
Ivailo Monev
3fb98b7044 ark: reserve space for the files to copy/remove from libarchive plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-19 23:42:04 +03:00
Ivailo Monev
b024821c56 ark: implement isReadOnly() for libarchive plugin
now the interface will properly indicate that the archive is not writable
when that is the case (it was not even before the port to KArchive)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 02:09:04 +02:00
Ivailo Monev
4aaa9bbe6e ark: remove read-only MIME types listed as read-write
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-22 02:02:37 +02:00
Ivailo Monev
6eba0a9eeb ark: set the KArchive temporary prefix to the global working directory
fixes creating of archives with large files that cannot fit in /tmp (or
whatever the temporary directory is set to). note that this still depends
on how much space is available on the filesystem the archive is created on
and will not work for remote archives - remote archives will have to be
fetched somewhere with enough space to hold the archive and a copy of it
(possibly $HOME) but that is for another commit (currently archives are
fetched into /tmp but not uploaded upon modification)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-19 18:09:23 +02:00
Ivailo Monev
e459aedf26 ark: remove unused X-KDE-Kerfuffle-APIRevision property
if you are not doing full rebuild (to catch API changes) atleast on
every new release then you are doing something wrong anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 07:42:04 +02:00
Ivailo Monev
4b240bb6c6 ark: correct X-DBUS-StartupType and set X-DBUS-ServiceName
ark is not unique application, i.e. it uses KApplicaiton and provides
org.kde.ark-<pid> D-Bus interface

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-05 05:52:54 +02:00
Ivailo Monev
57abca60ad generic: version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 22:09:47 +02:00
Ivailo Monev
47ec323674 ark: hack for KMediaPlayer part
note that it is MPV itself that requires it thus the media classes (such as
KMediaPlayer, KMediaWidget, etc.) require it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 02:10:04 +02:00
Ivailo Monev
fac3df8cef ark: set the part object name
used by debug message in kdelibs/kparts/part.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 23:26:42 +02:00
Ivailo Monev
5e96399497 ark: query for the preferred service from the viewer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-19 00:36:50 +03:00
Ivailo Monev
a52db499cd generic: link to karchive library for KCompressor and KDecompressor references
moved to karchive library

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:44:55 +03:00