Commit graph

38 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
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
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
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
44a349b97d generic: adjust to kfile changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 03:12:02 +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
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
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
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
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
a1bd927be0 ark: rename extracthere plugin to match the .desktop file name
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-27 18:02:01 +03:00
Ivailo Monev
bb0774af5e generic: remove appdata metadata files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-14 13:47:05 +03:00
Ivailo Monev
cb397b6a75 generic: move find_package() calls to top-level build file
reference:
https://github.com/fluxer/katana/issues/7

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-03-26 21:58:25 +02:00
Ivailo Monev
ca6ec59cc7 generic: replace macro_log_feature() with set_package_properties() calls
other changes such as syncing properties, updating some of the URLs,
adding missing feature information, removing of redundant checks and
variables and indentation were done in the process while testing if the
changes work as intended.

replacing find_package() with macro_optional_find_package() was also done
where applicable however it's usage is questionable due to the CMake
`CMAKE_DISABLE_FIND_PACKAGE_<PACKAGE>` option.

there is a lot to be done, mostly updating package properties so I am
thinking of either providing a package properties file (like the
MacroLibrary) which sets properties for packages globablly or setting
package properties from the CMake modules shipped with kdelibs. the first
solution may override properties for packages if other projects define them
however a check to ensure that is not done should suffice. the second
solution will cover only DESCRIPTION and URL meaning PURPOSE and TYPE will
still have to be specified in the build systems.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 05:37:28 +02:00
Ivailo Monev
59190d3194 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:12:24 +00:00
Ivailo Monev
27d88e1b12 ark: fix some compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-19 13:14:02 +00:00
Ivailo Monev
789d540274 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-18 15:29:33 +00:00
Ivailo Monev
cbf29a08cf generic: make changes required for building against Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-25 10:01:00 +00:00
Ivailo Monev
f58a4c5452 generic: major build system cleanup 2015-09-02 02:13:50 +03:00
Ivailo Monev
d8a22fda42 generic: optimize png images with optipng 2015-07-26 23:49:06 +03:00
Ivailo Monev
c135cfa6bf generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
Ivailo Monev
e0cee79203 ark: simplify the session restoration logic
Bail out earlier instead of nesting if checks and testing |window|'s
value in different places.
2015-01-04 02:47:25 +00:00
Ivailo Monev
3eb01a3ecd main: Stop leaking pointers when we do not enter the main app loop.
In the cases where we returned before calling KApplication::exec(), we
would end up leaking pointers such as |batchJob|, |window| and
|addToArchiveJob|.

Fix it by explicitly deleting |window| (since we do not have another
QWidget to make it a child of) and making |batchJob| and
|addToArchiveJob| be children of our main KApplication so that we do not
need to explicitly delete them under any circumstances.
2015-01-04 02:46:48 +00:00
Ivailo Monev
5c246a73ae Stop crashing on exit when being used solely as a KPart (upstream cd8ad276) 2014-11-26 00:31:55 +00:00
Ivailo Monev
07d10d4d4e initial import of ark 2014-11-18 17:46:34 +00:00