postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Mismatched Cursor on HiDPI display #10030

Open dallenbaldwin opened 3 years ago

dallenbaldwin commented 3 years ago

Describe the Issue On Postman for Linux v8.5.1 Snap, using a 3000x2000 display, the cursor does not match the system cursor and is very small.

Steps to Reproduce

  1. Download Postman for Linux v8.5.1 via the Snap Store
  2. Select a different system cursor
  3. Open Postman
  4. Behold the ultra tiny cursor that doesn't match the system cursor

Screenshots or Videos Screenshot from 2021-06-15 11-48-51 Screenshot from 2021-06-15 11-49-04

Environment Information

Additional Context Manually downloading and using the Postman binaries doesn't seem to have this issue.

abhinavg267 commented 3 years ago

Is there any update for this issue?

jviotti commented 2 years ago

Thanks a lot for the detailed report. We'll be taking a look at this very soon!

itsrafsanjani commented 2 years ago

@jviotti Is there any update on this? I'm having the same problem with Ubuntu 20.04 LTS.

johntria commented 2 years ago

The problem remain with me in Ubuntu 20.04 LTS.

RaisinTen commented 2 years ago

Which version of postman are y'all using btw?

johntria commented 2 years ago

Which version of postman are y'all using btw?

Postman for Linux

Version 9.15.2

Architecture x64

Platform linux 5.13.0-39-generic

RaisinTen commented 2 years ago

Does it happen only in the snap app or are you able to reproduce it when you download it from the website too - https://www.postman.com/downloads/?

RaisinTen commented 2 years ago

Also, does this help?

  1. add
    export XCURSOR_PATH=$RUNTIME/usr/share/icons

    to ~/.profile

  2. terminate postman and any chrome process running in the background
  3. relaunch the postman app

Also wondering if this happens in the Debian version of the app that can be installed from the Ubuntu Software app.

johntria commented 2 years ago

As i can see from the source code it works properly but from Ubuntu Software the problem remain with us. I added export XCURSOR_PATH=$RUNTIME/usr/share/icons but the issue not resolved.

RaisinTen commented 2 years ago

This appears to be the same issue as reported in https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1579268. I don't think we can do much about this other than just waiting for Snap to roll out a fix but I'll wait for a while for the rest of my team to confirm.

RaisinTen commented 2 years ago

cc @postmanlabs/desktop-foundation

johntria commented 2 years ago

You are right, I uninstalled all packages from snap-store and implemented by PPA. Everything works as excepted now.

Thank you for your time !

RaisinTen commented 2 years ago

@johntria sure, no worries! I was also wondering if you could try to set XCURSOR_PATH to /snap/postman/current/usr/share/icons instead and try to relaunch the snap postman app. The reason why I'm suggesting this is that RUNTIME might have been just an empty string (it is in my case). This should make the app attempt to load the installed cursor theme to match the system theme instead of loading the tiny X11 one (see https://github.com/ubuntu/snapcraft-desktop-helpers/pull/97 for reference).

deveshXm commented 2 years ago

Problem persists in Ubuntu 22.04 LTS

erkinsergey commented 2 years ago

Also in Mint 20.1

hholst80 commented 2 years ago

This seems to be a universal problem with Electron inside a Flatpak (or snap) container.

  1. Open up the flatpak environment.
  2. Set the environment variables
  3. Run Postman

We do not know what in the internals of Postman that goes wrong, but a developer should be able to attach a debugger to the process or sprinkle the code with some console.log and find out where it is trying to find the resources to run with a larger cursor shape than the default.

Telegram Desktop packaged in the same environment configuration is indeed able to use a custom XCURSOR_SIZE if XCURSOR_THEME=Adwaita.

So, the question is where is Telegram looking where Electron and Postman is forgetting to look? :)

PS. The non-sandboxed Postman works just fine and handles a custom XCURSOR_SIZE setting.

https://user-images.githubusercontent.com/6200749/194727294-d87ca627-159c-4626-a940-0f24b26931d6.mp4

hholst80 commented 2 years ago

I think I've gone as far as I will with this. Election uses Chromium for the UI stuff. Chromium in a flatpak will suffer from the same limitation as Postman and other Electron based apps.

Unless some kind of platform solution (workaround) is found for Chromium I don't see how any progress be made as Electron is Limited to what Chromium can support.

https://chromium-review.googlesource.com/c/chromium/src/+/2378142

googsvg commented 1 year ago

@jviotti @RaisinTen any updates for this?

problem still remains for Snap version

OS: Ubuntu 22.04.1 LTS

Snap: Postman for Linux Version 8.12.5 linux 5.15.0-52-generic / x64

kerbrek commented 1 year ago

Maybe developers need to enable "content interface plugs" https://forum.snapcraft.io/t/how-to-use-the-system-gtk-theme-via-the-gtk-common-themes-snap/6235

For example, the output of the snap connections rocketchat-desktop command for "Rocket.Chat" (the cursor is displayed correctly in the application):

Interface                 Plug                                       Slot                             Notes
...
content[gtk-3-themes]     rocketchat-desktop:gtk-3-themes            gtk-common-themes:gtk-3-themes   -
content[icon-themes]      rocketchat-desktop:icon-themes             gtk-common-themes:icon-themes    -
content[sound-themes]     rocketchat-desktop:sound-themes            gtk-common-themes:sound-themes   -
...

Firefox had a similar problem recently. Although "content interface plugs" were present, they were not enabled (connected) after installation. Therefore, the cursor was small and looked ugly.

paneverka commented 8 months ago

The problem remains for Snap:

OS: Ubuntu 23.10 Snap: Postman for Linux Version: 10.22.9

DanielNoga commented 5 months ago

The problem remains for Snap:

OS: Kubuntu 24.04 Snap: Postman for Linux Version: 10.24.16

angelof-exe commented 2 months ago

The problem remains for Snap:

OS: Zorin OS 17.1 Core Snap: Postman for Linux Version: 11.5.0

zscao commented 2 months ago

The problem remains for Snap:

OS: Zorin OS 17.1 Core Snap: Postman for Linux Version: 11.5.0

Same here, I am on Manjaro.

cammarb commented 2 months ago

The problem remains for the snap version. I'm using Ubuntu 24.04.

Postman details

someperson commented 2 months ago

This is still a major problem for me. As there is no apt repository available anywhere I can find for Ubuntu 24.04, I am unsure how I am supposed to keep this application up to date without jumping through a lot of hoops.