Commit graph

2743 commits

Author SHA1 Message Date
Ivailo Monev
99357e8a44 soliduiserver: check if the device is removable before unmounting it
as a precaution for device invalidation after unmount

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:15:05 +03:00
Ivailo Monev
cb97fd9984 soliduiserver: notify about mount and unmount errors as well as safe to remove devices
much like prior to f47177f876 except that
the notification is not done on solid signals but from the KDED module
responsible for mounting and unmounting

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:05:25 +03:00
Ivailo Monev
cca70e0412 kwin: KWin::Workspace::clientShortcutUpdated() optimization
KActionCollection::action() method takes QString as argument thus the
conversion to latin1 and then to char array would generate code path such
that QString would have to be constructed again..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 23:24:15 +03:00
Ivailo Monev
5ce06c488b plasma: X11EmbedContainer::setBackgroundPixmap() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 21:29:11 +03:00
Ivailo Monev
65dd8a3dfa klipper: adjust to KNotification changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 21:26:51 +03:00
Ivailo Monev
1fb3e430d4 kcontrol: add *.ogg and *.oga to the access KCM pattern
no idea what "artsd" is but figuring out in what format standard sounds are
is easy - just look into /usr/share/sounds. also, the sound files shipped
by Katana are in OGG format

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 06:50:12 +03:00
Ivailo Monev
c516068d74 knotify: change the combo box index on KCM load
changing the combo box index changes the notification config widget

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 21:49:51 +03:00
Ivailo Monev
a011628b2a knotify: implement save and load for the KCM
now to implemented KNotificationConfigWidget..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 19:40:19 +03:00
Ivailo Monev
48c9f4c366 kfreespace: correct application name in KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 19:38:45 +03:00
Ivailo Monev
bb7d56f999 knotify: fill the event sources combo box
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 19:03:43 +03:00
Ivailo Monev
c36ca89159 knotify: stub KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:48:04 +03:00
Ivailo Monev
47b083fbf2 ktouchpadenabler: use standard notification event IDs
it should probably use custom config and event IDs tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:47:09 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
5530bc18f3 kglobalaccel: remove unused variable
no idea what those bits were supposed to do

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 17:52:39 +03:00
Ivailo Monev
f52abcc81d libs: remove unused KPassivePopup header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 17:19:55 +03:00
Ivailo Monev
ca9117d909 generic: add X-KDE-HasTrayOption to .desktop files
for applications that do not create main window (e.g. create dialog window
instead) the tray feature is not enabled

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 16:57:14 +03:00
Ivailo Monev
39b8ffd1a6 kfind: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 01:50:20 +03:00
Ivailo Monev
3f85de5864 ksystraycmd: drop it and use the new tray argument of KApplication
see the following commit in kdelibs repo:
4b632fcae67da3b95e69e954fa2e581a42f4c53c

currently enabled only for a few applications until more tests are done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-24 01:45:34 +03:00
Ivailo Monev
69f7efcce1 plasma: adjust batterymonitor applet to solid changes
there were solid enum changes and then some in this repo, see the
following commit in the kdelibs repo:
2e1544537da02c8e89bc08c59fd3d6e1d146ef8c

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-23 21:12:39 +03:00
Ivailo Monev
4584fab20b libs: remove non-operational TaskManager::GroupManager::TaskSortingStrategy::ActivitySorting enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:57:15 +03:00
Ivailo Monev
0104dd678a plasma: default to manual sorting in tasks applet
see:
bd84219d6a

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:51:30 +03:00
Ivailo Monev
39e320492d qguiplatformplugin_kde: apply the cursor theme
for when not even X11 Xfixes extension can do it (as was done by
KGlobalSettings, however the difference being no check is done if it is
full Katana session - it is simply assumed it is the case when the platform
plugin is loaded)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 07:20:38 +03:00
Ivailo Monev
10e08246ca kcontrol: keep reference to the QByteArray object in ThemePage::applyTheme()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 05:57:52 +03:00
Ivailo Monev
186a7702e8 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 04:29:13 +03:00
Ivailo Monev
7e561880f1 qguiplatformplugin_kde: KQGuiPlatformPlugin::platformHint() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 09:32:16 +03:00
Ivailo Monev
7a6f5d0a25 kmediaplayer: specify filter for the open dialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 09:15:15 +03:00
Ivailo Monev
0a6ae17f1b qguiplatformplugin_kde: update comment about qt2KdeFilter() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 08:44:55 +03:00
Ivailo Monev
bd84219d6a plasma: default to manual sorting in tasks applet
like the icontasks applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 08:43:33 +03:00
Ivailo Monev
42cf4cacf8 kcontrol: fallback to KDE_DEFAULT_CURSOR_THEME in the cursor setup function, ignore X11 defaults
as is done by krdb for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 12:16:19 +07:00
Ivailo Monev
d62ee58181 kcontrol: required the theme argument of kapplymousetheme to be non-empty
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 12:14:02 +07:00
Ivailo Monev
7189f4783e kcontrol: keep reference to the QByteArray object in KeySymHelper::getKeySymbol()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 09:21:12 +07:00
Ivailo Monev
e4dfd5c4a5 generic: apply effect settings from the platform plugin instead of writing to the Katie config
the idea being to not write anything into the Katie config and possibly
even drop support for overriding Katie settings from config.

on a side note font and palette settings are wrapped via classes
(KGlobalSettings and KColorScheme) and hard-wired to configs rather than
being a runtime thing (e.g. getting the font to use for menus via
QApplication::font("QMenu") instead of KGlobalSettings::menuFont()) so lots
to do on that, as for how it will benefit Katana and Katie - less config
parsing possibly, QPalette objects are shared data for example

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 22:21:25 +03:00
Ivailo Monev
133a1e3e9b kcontrol: remove now unused applyQtColors() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 21:40:24 +03:00
Ivailo Monev
f298066b23 kcontrol: do not write palette to the Katie config from krdb
palette is to be set by the platform plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 20:37:49 +03:00
Ivailo Monev
9fe1463ad0 qguiplatformplugin_kde: implement systemIcon()
now icons loaded via QIcon::fromTheme() will have effects applied

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 18:07:29 +03:00
Ivailo Monev
3494ad9160 qguiplatformplugin_kde: set the palette on KGlobalSettings::kdisplayPaletteChanged() signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-21 17:36:54 +03:00
Ivailo Monev
8741d1a7ec startkde: selectively export variables to the D-Bus activation environment
otherwise the variables may persist trough the Katana session (e.g. if
D-Bus was not launched by `startkde`) and affect other desktop environments
and X11 sessions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 18:28:27 +03:00
Ivailo Monev
31f2eb9b81 startkde: do not export QT_PLUGIN_PATH and QT_PLATFORM_PLUGIN
Katie now checks for XDG_CURRENT_DESKTOP when detecting which platform
plugin to use (see 01dab8cebd94d94969f034fbd842bc45d690d72d in the Katie
repo) and KComponentData setups the library and plugin paths (see
kdelibs/kdecore/kernel/kcomponentdata.cpp) thus exporting the environment
variables is redundant (could be exported for applications that are not
part of Katana but that is not Katana's responsibility)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 16:45:17 +03:00
Ivailo Monev
b099184aff kdirshare: disable user and password labels when authentication is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 16:41:06 +03:00
Ivailo Monev
66e4c86523 kwin: Oxygen::Client::mouseMoveEvent() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 01:06:55 +03:00
Ivailo Monev
fcc39c2b3b generic: explicitly enable startup notification for all applications that support it
KRun, klauncher4, etc. no longer assume that applications support it nor
is it emulated for applications that do not - if applications do not
support it or do not do it correctly that's their problem

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 00:43:08 +03:00
Ivailo Monev
a82a3d36ac kurifilter-plugins: adjust to KLocalizedString changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 23:18:52 +03:00
Ivailo Monev
7402ab544f generic: set Implements and SingleMainWindow properties in .desktop files
see f8e1de37283b47cbe3c39b639fa7f01c52bb2187 in the kdelibs repo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 22:36:17 +03:00
Ivailo Monev
5aee8ab206 klipper: disable startup notification
usually not visible but has tray icon and startup notification relies
mostly on a main window to be show for emitting finish

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 21:25:03 +03:00
Ivailo Monev
f361cf22c2 kdirshare: implement footer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 20:57:04 +03:00
Ivailo Monev
f00420a34a generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 19:47:34 +03:00
Ivailo Monev
1091d4d98c ksmserver: use KSMServer::isWM() to check if session command is window manager command
fixes window manager session restoration, for reference:
c920743903

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 15:12:51 +03:00
Ivailo Monev
ee10c1a6c3 plasma: add binding for KLocale::toLocale() method
requires e4a7b266fe5a266c76b00513314540b2172927d6 from kdelibs to function
properly

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 19:33:03 +03:00
Ivailo Monev
efe25546a1 plasma: remove unused battermonitor applet import
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 17:55:15 +03:00
Ivailo Monev
f1f6ae7a3e generic: replace X-KDE-StartupNotify with StartupNotify
X-KDE-StartupNotify is for compatibility and used as fallback (in case
StartupNotify is not set)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 05:11:16 +03:00