Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wish] dock in the kde systray the webapp #72

Open
promeneur opened this issue Dec 20, 2024 · 3 comments
Open

[wish] dock in the kde systray the webapp #72

promeneur opened this issue Dec 20, 2024 · 3 comments

Comments

@promeneur
Copy link

Hello thanks

It would be perfect if you add the ability to put in the KDE systray the webapp.

@hepp3n
Copy link
Collaborator

hepp3n commented Dec 20, 2024

Hello,

I think it's not possible. We can't control how browser (so webapp) will behave. Under the hood, it's basically firefox (if you choosen firefox for your webapp) or other browser and they, don't have ability to put in systray.

The only solution which comes to my mind is to make Quick Web Apps "trayable" so you can launch your web apps from the systray. But for now even that is not possible, since libcosmic cannot be make as "tray" app (i think).

I won't close this issue yet but for me, it's not possible to do :( Maybe in the future some good ideas will come.

@promeneur
Copy link
Author

Till this day i use Kdocker, wmctrl and Chrome webapp feature to write a script like this one.
This script is compliant with X11 and Wayland.

In this script i use "QT_QPA_PLATFORM=xcb " to get Wayland compliancy
#!/bin/bash

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

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

@hepp3n
Copy link
Collaborator

hepp3n commented Dec 25, 2024

Hello,

This is kind of hacky workaround imho. Not sure if we can do this in nice way since it require third party programs. Maybe if libcosmic supports tray apps, so we should make some sort of tray icon with custom actions or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants