Cannot configure web shortcuts in Okular in Manjaro XFCE

When I right click a word in Okular, there is an option to search for it in Google, Wikipedia, and other web services. However the option to “Configure Web Shortcuts” is not working (nothing happens when I click on it).

The terminal output is,

$ okular filename.pdf
kf.dbusaddons: Can not find 'kdeinit5' executable at  "/home/archisman/miniconda3/condabin:/home/archisman/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" "/usr/bin, /usr/bin"
"KLauncher could not be reached via D-Bus. Error when calling kdeinit_exec:\nThe name org.kde.klauncher5 was not provided by any .service files\n"

(This output occurs only when I click “Configure Web Shortcuts”).

Here is the output of inxi -Fazi

$ inxi -Fazi
System:    Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=067bb185-2ee6-4461-8d00-69086fb7fed6 rw quiet
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel, vala-panel wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0
           Distro: Manjaro Linux base: Arch Linux
Machine:   Type: Laptop System: HP product: HP 250 G5 Notebook PC v: Type1ProductConfigId serial: <filter> Chassis:
           type: 10 serial: <filter>
           Mobo: HP model: 81EB v: 61.41 serial: <filter> UEFI: Insyde v: F.24 date: 01/05/2017
Battery:   ID-1: BAT1 charge: 35.4 Wh (100.0%) condition: 35.4/32.1 Wh (110.2%) volts: 16.6 min: 14.6
           model: Hewlett-Packard PABAS0241231 type: Li-ion serial: <filter> status: Full
CPU:       Info: Dual Core model: Intel Core i3-6006U bits: 64 type: MT MCP arch: Skylake family: 6 model-id: 4E (78)
           stepping: 3 microcode: EA cache: L2: 3 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 16006
           Speed: 500 MHz min/max: 400/2000 MHz Core speeds (MHz): 1: 500 2: 500 3: 500 4: 500
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable
           Type: meltdown mitigation: PTI
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2
           mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
           Type: srbds mitigation: Microcode
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard driver: i915 v: kernel bus-ID: 00:02.0
           chip-ID: 8086:1916 class-ID: 0300
           Device-2: Chicony HP TrueVision HD type: USB driver: uvcvideo bus-ID: 1-5:3 chip-ID: 04f2:b56c class-ID: 0e02
           serial: <filter>
           Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: loaded: modesetting
           alternate: fbdev,vesa display-ID: :0.0 screens: 1
           Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.7x9.4") s-diag: 485mm (19.1")
           Monitor-1: eDP-1 res: 1600x900 hz: 60 dpi: 118 size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
           alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d70 class-ID: 0403
           Sound Server-1: ALSA v: k5.10.70-1-MANJARO running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: yes
           Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169
           v: kernel port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
           IF: eno1 state: down mac: <filter>
           Device-2: Intel Wireless 3165 driver: iwlwifi v: kernel bus-ID: 02:00.0 chip-ID: 8086:3165 class-ID: 0280
           IF: wlo1 state: up mac: <filter>
           IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter>
           IP v6: <filter> type: noprefixroute scope: link
           WAN IP: <filter>
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 chip-ID: 8087:0a2a
           class-ID: e001
           Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: disabled rfk-block: hardware: no software: no
           address: see --recommends
Drives:    Local Storage: total: 931.51 GiB used: 654.53 GiB (70.3%)
           SMART Message: Unable to run smartctl. Root privileges required.
           ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB block-size: physical: 4096 B
           logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 4C scheme: GPT
Partition: ID-1: / raw-size: 51.76 GiB size: 50.64 GiB (97.85%) used: 30.88 GiB (61.0%) fs: ext4 dev: /dev/sda8
           maj-min: 8:8
           ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 101.1 MiB (39.5%) fs: vfat dev: /dev/sda1
           maj-min: 8:1
           ID-3: /home raw-size: 22.98 GiB size: 22.45 GiB (97.70%) used: 13.8 GiB (61.5%) fs: ext4 dev: /dev/sda7
           maj-min: 8:7
Swap:      Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
           ID-1: swap-1 type: zram size: 2 GiB used: 30 MiB (1.5%) priority: 5 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 34.5 C mobo: 29.8 C
           Fan Speeds (RPM): N/A
Info:      Processes: 221 Uptime: 21h 48m wakeups: 5 Memory: 7.66 GiB used: 5.1 GiB (66.5%) Init: systemd v: 249
           tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1670 lib: 348 Shell: Bash v: 5.1.8
           running-in: xfce4-terminal inxi: 3.3.08

Okular is a kde application - the feature is most likely - provided by an optional dependency - if that is not the case you can try searching for it.

Make sure you have the files databases

$ sudo pacman -Fy

$ pacman -F kdeinit5 
extra/kinit 5.87.0-1 (kf5)

When you try to get such a specific application to work the way it was intended to may require the environment it was created for.

I get the following error when I try to do this after installing kinit.

kdeinit5: Got EXEC_NEW 'kcmshell5' from launcher.
kdeinit5: preparing to launch 'libkdeinit5_kcmshell5'
Could not open library 'libkdeinit5_kcmshell5'.
Cannot load library libkdeinit5_kcmshell5: (libkdeinit5_kcmshell5: cannot open shared object file: No such file or directory)
kdeinit5: PID 43729 terminated.

pacman -F kcmshell does not produce any output.

Edit: I verified that it works correctly in Linux Mint 20.2 XFCE edition. It would be great if someone can suggest a workaround for Manjaro.

A workaround is to install plasma-workspace, which installs a lot of dependencies. I don’t know which particular dependency of plasma-workspace does the job.