JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.42k stars 1.12k forks source link

Application Tray Icon not configured on Linux Desktop with Gnome (images and icons tutorial) #595

Open fauxvillage opened 3 years ago

fauxvillage commented 3 years ago

Tutorial for image and icon manipulation has section for configuring an application tray icon (https://github.com/JetBrains/compose-jb/tree/master/tutorials/Image_And_Icons_Manipulations#setting-the-application-tray-icon)

Unfortunately, it does not affect the tray icon's menu, even when packaged and installed.

I have tested this on Red Hat 8.3 and Ubuntu 20.04 with Gnome 3.32 and 3.36 respectively; both with JDK 15 (oracle)

Results are the same for compose 0.3.1, 0.3.2, 0.4.0build183 and their respective kotlin versions 1.4.31 and .32

additionally: desktop for rpm package is not yet an available task; with debian, setting the application window icon example only works for first method, not the second (using setIcon method) and needs to be run as installed application to display icon properly

this previous, related issue seems to suggest that Gnome is the problem source; but is it? https://github.com/JetBrains/compose-jb/issues/65

soloturn commented 3 years ago

@fauxvillage what is a "tray icon" on macosX or gnome, and what does it do?

fauxvillage commented 3 years ago

@soloturn the "tray" or "system tray" is a desktop panel showing running programs, usually including an "actions" menu when right-clicked

olonho commented 3 years ago

We're not currently planning to support many distinct Linux package managers ourselves, but practically there are tools for such conversions available, i.e https://www.thegeekstuff.com/2010/11/alien-command-examples/.

fauxvillage commented 3 years ago

it appears from the current documentation that support for ".deb" and ".rpm" is a goal; and I think it is a fine tutorial without being able to package for both

I agree the challenge with Linux is the many "flavors" of desktops and window managers

It seems, too that Gnome has a substantial enough installation base that it warrants being used as the default Linux desktop in examples; I'm guessing that as I learn more about this, I'll see why the previous statement is wrong (perhaps that should be my tagline)

Thanks for the great work you guys are doing and the help you provide here