Commit graph

3453 commits

Author SHA1 Message Date
Ivailo Monev
aa6b5ea4f0 kinit: klauncher and KCrash rewrite
much simpler and easier to maintain, also it will be proper D-Bus
service now with no sockets, process title hack and whatnot. KCrash
and startkde script (in kde-workspace repo) have to be adjusted for
it tho

note that the internal KIO scheduler already has the functionality to
put slaves on hold but now they will be started as detached process.
eventually they may become plugins (they are loaded as such by kioslave
program) without event loop dispatcher

fixes application startup notification (ASN) and cleanup issues

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-04 23:20:15 +02:00
Ivailo Monev
e851a35ee5 generic: remove unused X-KDE-autostart-after feature
klipper and kmix set it to "panel" in their .desktop files but that's not
valid application/service

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 04:06:04 +02:00
Ivailo Monev
a684811e80 plasma: remove duplicate header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 03:54:58 +02:00
Ivailo Monev
409253ab09 kdeui: enable complex animation effects by default if compositing manager is running
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 03:22:28 +02:00
Ivailo Monev
0f0c306927 plasma: move bufferPixmap variable to the scope it is used in
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 00:57:54 +02:00
Ivailo Monev
7f3fa16363 kio: remove documentation for removed KIO::StatJob method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 00:18:50 +02:00
Ivailo Monev
eebd8d9475 kinit: remove XAUTHORITY hack
it is breaking kdontchangethehostname. also kded4, kglobalaccel, knotify,
and kuiserver were redone to be proper D-Bus service with signal handlers
(see KApplication::quitOnSignal()) so if the dbus-daemon sends signal to
the processes they will clean up properly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 21:17:20 +02:00
Ivailo Monev
bd2231fdd6 kutils: use only the width as condition for showing the play button text
the height does not affect the position slider size

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 07:11:10 +02:00
Ivailo Monev
86adc6607c kdecore: do not check if the file exists from KAutostart::isServiceRegistered()
if the file does not exists KStandardDirs::locate() returns empty QString

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:58:27 +02:00
Ivailo Monev
6ce3335549 kdecore: drop support for storing autostart phase as string
note: workspaceoptions KCM may have written such entries

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:53:22 +02:00
Ivailo Monev
0cdb519ddc kutils: poll for state changes even if org.freedesktop.login1 interface is used
the state is tracked anyway and now the code path for both is the same

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:14:30 +02:00
Ivailo Monev
7372b01cdd solid: remove unused Solid::PowerManagementPrivate::RequiredPolicy enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 05:43:16 +02:00
Ivailo Monev
61787d5358 cmake: specify the input as dependency from kde4_translate() macro
such changes may be worth a minor release, I always use the latest
regardless tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 04:31:48 +02:00
Ivailo Monev
84f426d37f kutils: include kpasswdstore library directories
fixes bootstrap build

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 02:50:59 +02:00
Ivailo Monev
82e165acc0 kdecore: include kdeui library includes
fixes bootstrap build

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 02:38:03 +02:00
Ivailo Monev
3ab393c337 solid: correct cookie type and remove obsolete standby sleep mode
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 23:49:20 +02:00
Ivailo Monev
f345af3c29 generic: version bump
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 22:03:10 +02:00
Ivailo Monev
68972d2ddd kdecore: add debug areas for kdirshare and kscreensaver
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 18:33:42 +02:00
Ivailo Monev
c5cf1cc960 kdecore: remove bogus kmimetype_nomimetypes test
the test is for the worse case scenario, i.e. what if /etc/passwd is
missing? in that case the system is borked and should be fixed, that's
not a problem Katana will (or should) solve nor workaround tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 05:55:34 +02:00
Ivailo Monev
eb94c30c11 kutils: const-ify variable in KMediaWidget::dropEvent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 02:53:06 +02:00
Ivailo Monev
d6d17d194c kutils: use KMessageBox for the drop event error
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 02:51:54 +02:00
Ivailo Monev
ce4f5b3c14 plasma: build fix for the case when NDEBUG is not defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 10:15:50 +02:00
Ivailo Monev
b2ad647dcb kioslave: add assert about the curl_off_t assumption
curl_off_t may be typedef-ed to long on some bizarre system, Katie does not
support such tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 09:44:12 +02:00
Ivailo Monev
77d4eda777 kio: do not check what plugin to use for items with empty MIME type
such items should not be in the queue for preview even, even items for
remote URLs have something vendor-specific or application/octet-stream as
MIME type. fixes KMimeTypeTrader runtime warning

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 09:14:28 +02:00
Ivailo Monev
d359858513 kutils: correct default value for widgetStyle
is keramik v3.x style?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 08:39:37 +02:00
Ivailo Monev
58f6472d45 solid: fix screen power management supressesion
this has been broken since before the fork because message was send with
wrong cookie type

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 05:23:12 +02:00
Ivailo Monev
806b06db55 kutils: update org.freedesktop.ScreenSaver interface file used by kidletime
those methods were not implemented and were removed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 04:58:11 +02:00
Ivailo Monev
bdccbb1709 generic: implement hybrid suspend/sleep method
marking as extension because it was not implemented before and the FDO
spec is dead (i.e. not a spec anymore), may or may not work with other
power managers implementing the interface (org.freedesktop.PowerManagement)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 02:14:44 +02:00
Ivailo Monev
c06770a96f kio: remove archive slaves leftovers
they were not using the X-KDE-LocalProtocol property either

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 11:30:38 +02:00
Ivailo Monev
1460e60247 kio: remove binary compat bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 11:29:03 +02:00
Ivailo Monev
f744763fcd kutils: update the play button from KMediaWidget::setPlay()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:27:07 +02:00
Ivailo Monev
a735d4ee3b kutils: remove TODO related to KMediaWidget
don't have to restore the position from KMediaWidget itself

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:26:42 +02:00
Ivailo Monev
22755ffef1 kutils: drop the fullscreen option of the media widget
that nasty hack was working like a charm tho. oh, well..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 07:08:27 +02:00
Ivailo Monev
8c1a5d300a kutils: invert the meaning of the KMediaWidget::setPlay() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:54:53 +02:00
Ivailo Monev
238f9c37bc kutils: drop the hidden controls option
it is very tricky to do it correctly, especially with KMainWindow and the
like doing their thing with menu/status bars

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:20:37 +02:00
Ivailo Monev
7408c3b692 kutils: de-duplicate KAbstractPlayer code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 06:03:56 +02:00
Ivailo Monev
b19a07619d kimgio: correct note in jp2 plugin
color space is exclusive value

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:46:42 +02:00
Ivailo Monev
12a58a3ee0 kutils: media classes debug and warning messages review
some of them were wrapped in i18n() macro with the idea to use some of them
in errorString() getter to report MPV initialization failure for example
but I do not think I will implement that (not that there is error(QString)
signal for reporting MPV failure after its initialization)

the debug messages are also quite spammy (because of time-pos property
changing constantly while playing for example), i.e. don't enable them
unless you have good reason for that because multiple media classes
instances can quickly fill your ~/.xsession-errors with lots of messages

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:22:04 +02:00
Ivailo Monev
7f4e028fb6 kutils: do not observe loadfile property
altought it is a command an event it send for it but the property is not
used by the media classes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 02:09:40 +02:00
Ivailo Monev
883db83628 kutils: KMediaPlayer initialization optimization
there used to be "vo" option doing the same I believe, anyway it should
speed up initializations by not checks for other contexts (it is to be
rendered into X11 window after all)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-29 01:15:44 +02:00
Ivailo Monev
254431d75a kutils: udate comment in KMediaWidget::_updateError()
there used to be option to disable the controls (play/pause button,
position slider, etc.)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 23:07:13 +02:00
Ivailo Monev
a8ec0ae048 plasma: remove binary compat bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-28 01:28:02 +02:00
Ivailo Monev
211ea52f22 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 23:41:10 +02:00
Ivailo Monev
d598c3cccf kimgio: verify the image color space earlier in jp2 plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 18:23:35 +02:00
Ivailo Monev
a0afe27554 kimgio: do not attempt to load images in YUV, e-YCC and CMYK color space
if the decoder cannot tell (correctly) the color space then.. idk

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 18:17:19 +02:00
Ivailo Monev
ac32164782 kdeui: remove unused KFontChooser widget
unused since the raw (X11) fonts support was dropped

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 07:29:50 +02:00
Ivailo Monev
b0e419b650 kutils: set the horizontal size type of the main KMediaWidgetUI widget to expanding
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 06:13:59 +02:00
Ivailo Monev
797ecf1dfc kutils: show KMediaWidget play button text conditionally
this feature is mostly for Dolphin which fits it into a small area and
there really is not enough space for the position slider

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 05:59:37 +02:00
Ivailo Monev
e5dbeb8cb4 kutils: correct slot name in KMediaWidget constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 04:52:16 +02:00
Ivailo Monev
6e8e2238cc kdecore: add comment to KDebug() default switch case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 04:51:47 +02:00