Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a1704fc8 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Add kconf_update script to adapt to .desktop name change in 17.08

org.kde.kmail.desktop has been renamed to org.kde.kmail2.desktop so we need
to adjust kickoff again and we also need to adjust mimeapps.list so that using
"xdg-open mailto:..." keeps working.
parent bda80ab1
install(FILES kmail.upd
install(FILES kmail.upd kmail2.upd
DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
install(PROGRAMS kmail-15.08-kickoff.sh
install(PROGRAMS kmail-15.08-kickoff.sh kmail2.sh
DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
#!/bin/sh
kickoffrcname=`qtpaths --locate-file GenericConfigLocation kickoffrc`
if [ -f "$kickoffrcname" ]; then
sed -i "s/\/org.kde.kmail.desktop/\/org.kde.kmail2.desktop/" $kickoffrcname
fi
mimeappsname=`qtpaths --locate-file GenericConfigLocation mimeapps.list`
if [ -f "$mimeappsname" ]; then
sed -i "s/org.kde.kmail.desktop/org.kde.kmail2.desktop/" $mimeappsname
fi
Version=5
# Update ~/.config/mimeapps.list and kickoff to match the new .desktop file name in 17.08
Id=kmail2
Script=kmail2.sh,sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment