diff options
author | Nicolas Fella <nicolas.fella@gmx.de> | 2023-07-05 09:29:52 +0200 |
---|---|---|
committer | Nicolas Fella <nicolas.fella@gmx.de> | 2023-07-05 09:29:52 +0200 |
commit | 08d0894e5dc1cfb20ffd1dc2a765fd9b04138bd9 (patch) | |
tree | 22d114d25541ef0b47fbd3caf97973683992de0d | |
parent | 8ae02631a9806da11b34cd6b274af02d28aee5da (diff) |
xdg-mime: Use defapp_generic on Plasma 6
defapp_kde uses the no longer existing kmimetypetrader
It doesn't do anything particularly special anyway so we might as well use defapp_generic
-rw-r--r-- | scripts/xdg-mime.in | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in index d194b0e..19712b5 100644 --- a/scripts/xdg-mime.in +++ b/scripts/xdg-mime.in @@ -610,15 +610,12 @@ fi if [ "$action" = "defapp" ]; then detectDE - case "$DE" in - kde) + if [ "$DE" == "kde" ] && [ "$KDE_SESSION_VERSION" -lt "6" ]; then defapp_kde "$mimetype" - ;; + fi + + defapp_generic "$mimetype" - *) - defapp_generic "$mimetype" - ;; - esac exit_failure_operation_impossible "no method available for quering default application for '$mimetype'" fi |