** Package changed: xorg (Ubuntu) => gnome-shell-extension-appindicator
(Ubuntu)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell-extension-appindicator in
Ubuntu.
https://bugs.launchpad.net/bugs/2085020

Title:
  Wrong tray icon size on Java Apps (Ubuntu 24.10 and GNOME)

Status in gnome-shell-extension-appindicator package in Ubuntu:
  New

Bug description:
  Ubuntu thinks that it's tray icon size is 24 pixels
  but it's only 16 pixels.

  This creates some apps, like the java one below to display a tray icon
  that is too big.

  
  ```
  import javax.imageio.ImageIO;
  import java.awt.*;
  import java.awt.event.*;
  import java.awt.image.BufferedImage;
  import java.io.File;
  import java.io.IOException;

  public class TrayIconExample {

      public static void main(String[] args) throws IOException {
          // Create a new tray icon
          SystemTray tray = SystemTray.getSystemTray();
          BufferedImage img = ImageIO.read(new 
File("/full/path/to/image/luciferin_logo.png"));
          Image image = 
Toolkit.getDefaultToolkit().createImage(img.getSource());

          PopupMenu popup = new PopupMenu();
          MenuItem exitItem = new MenuItem("Exit");
          popup.add(exitItem);

          TrayIcon trayIcon = new TrayIcon(image, "My Tray Icon", popup);
          try {
              trayIcon.setImageAutoSize(true);
              System.out.println("TrayIcon Size: " + 
tray.getTrayIconSize().getSize());
              trayIcon.setImage(image);
              tray.add(trayIcon);
          } catch (AWTException e) {
              System.out.println("Error: tray icon not supported");
              System.exit(1);
          }

          // Add a mouse listener
          trayIcon.addMouseListener(new MouseAdapter() {
              @Override
              public void mouseClicked(MouseEvent e) {
                  if (e.getButton() == MouseEvent.BUTTON1) {
                      System.out.println("Left button clicked");
                  } else if (e.getButton() == MouseEvent.BUTTON2) {
                      System.out.println("Middle button clicked");
                  } else if (e.getButton() == MouseEvent.BUTTON3) {
                      System.out.println("Right button clicked");

                  }
              }
          });

          // Add a listener for the exit event
          exitItem.addActionListener(e -> System.exit(0));

          // Main loop to keep the application running
          while (true) {
              try {
                  Thread.sleep(1000); // Check every second
              } catch (InterruptedException ex) {
                  // Handle the interruption
              }
          }
      }
  }
  ```

  
  This line:
  System.out.println("TrayIcon Size: " + tray.getTrayIconSize().getSize());

  Print 24 pixels instead of 16.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.10
  Package: xorg 1:7.7+23ubuntu3
  ProcVersionSignature: Ubuntu 6.11.0-8.8-generic 6.11.0
  Uname: Linux 6.11.0-8-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  .proc.driver.nvidia.capabilities.fabric-imex-mgmt:
   DeviceFileMinor: 4323
   DeviceFileMode: 256
   DeviceFileModify: 1
  .proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
  .proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
  .proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
  .proc.driver.nvidia.registry: Binary: ""
  .proc.driver.nvidia.suspend: suspend hibernate resume
  .proc.driver.nvidia.suspend_depth: default modeset uvm
  .proc.driver.nvidia.version:
   NVRM version: NVIDIA UNIX x86_64 Kernel Module  555.58.02  Tue Jun 25 
01:39:15 UTC 2024
   GCC version:  gcc version 14.2.0 (Ubuntu 14.2.0-4ubuntu2)
  ApportVersion: 2.30.0-0ubuntu4
  Architecture: amd64
  BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
  CasperMD5CheckResult: pass
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Oct 20 13:38:54 2024
  DistUpgraded: 2024-10-11 17:53:54,705 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
  DistroCodename: oracular
  DistroVariant: ubuntu
  DkmsStatus:
   nvidia/555.58.02, 6.11.0-8-generic, x86_64: installed
   nvidia/555.58.02, 6.8.0-45-generic, x86_64: installed
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1) (prog-if 00 
[VGA controller])
     Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:5102]
  InstallationDate: Installed on 2023-10-19 (367 days ago)
  InstallationMedia: Ubuntu Legacy 23.10 "Mantic Minotaur" - Release amd64 
(20231010)
  MachineType: Micro-Star International Co., Ltd. MS-7D69
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.11.0-8-generic 
root=UUID=cbc210b5-5db3-4594-8ca3-d3bbae99cce1 ro quiet splash 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M 
vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  UpgradeStatus: Upgraded to oracular on 2024-10-11 (9 days ago)
  dmi.bios.date: 07/23/2024
  dmi.bios.release: 5.35
  dmi.bios.vendor: American Megatrends International, LLC.
  dmi.bios.version: 1.I0
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: MEG X670E ACE (MS-7D69)
  dmi.board.vendor: Micro-Star International Co., Ltd.
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: To be filled by O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Micro-Star International Co., Ltd.
  dmi.chassis.version: 1.0
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.I0:bd07/23/2024:br5.35:svnMicro-StarInternationalCo.,Ltd.:pnMS-7D69:pvr1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMEGX670EACE(MS-7D69):rvr1.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr1.0:skuTobefilledbyO.E.M.:
  dmi.product.family: To be filled by O.E.M.
  dmi.product.name: MS-7D69
  dmi.product.sku: To be filled by O.E.M.
  dmi.product.version: 1.0
  dmi.sys.vendor: Micro-Star International Co., Ltd.
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.122-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 24.2.3-1ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx N/A
  version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
  version.xserver-xorg-core: xserver-xorg-core 2:21.1.13-2ubuntu1
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:22.0.0-1build1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20210115-1build1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:1.0.17-3ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-appindicator/+bug/2085020/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to