[howto], wayland, using kdocker

I use Chrome web app feature to get on my desktop Facebook, G Messages, G contacts.
I use kdocker to dock in kde systray these web apps.

In the case of Wayland, kdocker is not compliant.

The solution is, you must launch it as this “QT_QPA_PLATFORM=xcb kdocker”.

Here is a script to launch a Facebook chrome web app and to minimize it in the kde systray


#!/bin/bash

bash -c '/opt/google/chrome/google-chrome --profile-directory=Default --app-id=kippjfofjhjlffjecoapiogbkgbpmgej &'

while [ true ]
do
sleep 5
status=$(wmctrl -l | grep "Facebook")
if [ "$status" != "" ] ; then
break
fi
done
WID="$(wmctrl -lx | grep "Facebook")"; QT_QPA_PLATFORM=xcb kdocker -qtw "${WID%% *}" -i ~/.local/share/icons/hicolor/32x32/apps/chrome-kippjfofjhjlffjecoapiogbkgbpmgej-Default.png &

It is nice you post code for other to benefit, but please, as all code show here on the forums, it should be posted using the Preformatted text feature (the button: </>).

It not only will format fixed font and all tabs, etc. as it was in your original scripting code, but look careful and you will see it changed your " characters into “ and ”. So anybody that would copy this will wonder why bash interprets this as rubbish. :frowning:

I tried to use it, but it does not work.
The result is `` and when I insert the script, then there is no effect.

See the other thread.

It’s three, not two backquotes:

3 back-quotes (backtick) on a blank line above the code and 3 after on a blank line

On a mobile device, the editor toolbar is only partially shown (for me, anyway) - you tap the gear icon to show remaining options. Like now, I’m using the Brave browser on my Android phone, so I have to manually tap the backquotes or use gear icon :+1:
.

@myswtest It’s all just Markdown so as long as you know the basics it will be fine…

Yea, as a rule, I type the markdowns, so understand … my intent was to explain it to the OP, @promeneur :+1: