blob: 13c50c902454e472dfeb9dac94d9121988367299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
post_install() {
# KRunner needs to be restarted for the changes to be applied
if pgrep -x krunner > /dev/null
then
kquitapp5 krunner
fi
# If KRunner does not get started using the shortcut we have to autostart it
krunner_version=$(krunner --version | cut -d " " -f2)
major_version=$(echo $krunner_version | cut -d "." -f -1)
minor_version=$(echo $krunner_version | cut -d "." -f2)
if [[ (("$major_version" < "5")) || (("$minor_version" < "17")) ]]
then
kstart5 krunner --windowclass krunner
fi
}
post_remove() {
# KRunner needs to be restarted for the changes to be applied
if pgrep -x krunner > /dev/null
then
kquitapp5 krunner
fi
# If KRunner does not get started using the shortcut we have to autostart it
krunner_version=$(krunner --version | cut -d " " -f2)
major_version=$(echo $krunner_version | cut -d "." -f -1)
minor_version=$(echo $krunner_version | cut -d "." -f2)
if [[ (("$major_version" < "5")) || (("$minor_version" < "17")) ]]
then
kstart5 krunner --windowclass krunner
fi
}
|