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

Jetbrains IDEs don't use user cursor theme #50344

Closed
alapshin opened this issue Nov 14, 2018 · 10 comments
Closed

Jetbrains IDEs don't use user cursor theme #50344

alapshin opened this issue Nov 14, 2018 · 10 comments

Comments

@alapshin
Copy link
Contributor

Issue description

Android Studio doesn't use user's cursor theme.
For example, I have Breeze cursor theme selected in KDE settings but Android studio uses some default theme instead.

I tired different gtk apps (firefox, gimp), different Jetbrains IDEs (idea, pycharm) and even steam (since it also uses FHS environment). All of them respect user's cursor theme.

Android Stuido build downloaded from Google site also respects user's cursor theme.

Steps to reproduce

  1. Change cursor theme to something other than default
  2. Launch Android Studio
  3. Move cursor inside Android Studio window. It changes to default one.

Technical details

- system: `"x86_64-linux"`
- host os: `Linux 4.14.79, NixOS, 19.03pre158246.6141939d6e0 (Koi)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.1.3`
- channels(root): `"nixos-19.03pre158246.6141939d6e0"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@alapshin alapshin changed the title Android studio doesn't use system cursor theme Android studio doesn't use user cursor theme Nov 14, 2018
@alapshin
Copy link
Contributor Author

After some tinkering it looks like other Jetbrains IDEs installed from nixpks also have this problem.
Which is strange since versions downloaded directly from website use correct cursor theme.

@alapshin alapshin changed the title Android studio doesn't use user cursor theme Jetbrains IDEs don't use user cursor theme Nov 16, 2018
@Nirvandil
Copy link

Same here (with Intellij IDEA). It would be nice to make them respect user cursor theme, because default one looks really ugly.

@ivan
Copy link
Member

ivan commented Jan 24, 2019

I tried

--- a/pkgs/development/compilers/jetbrains-jdk/default.nix
+++ b/pkgs/development/compilers/jetbrains-jdk/default.nix
@@ -49,7 +49,7 @@ let drv = stdenv.mkDerivation rec {
     stdenv.cc.cc stdenv.cc.libc glib libxml2 libav_0_8 ffmpeg libxslt libGL
     alsaLib fontconfig freetype pango gtk2 cairo gdk_pixbuf atk
   ] ++ (with xorg; [
-    libX11 libXext libXtst libXi libXp libXt libXrender libXxf86vm
+    libX11 libXcursor libXext libXtst libXi libXp libXt libXrender libXxf86vm
   ]));

   passthru.home = drv;

and confirmed it got included in /nix/store/bp5m0f8k88d088cx40n17mnv4cdwib05-jetbrainsjdk-152b1248.6/bin/java, but unfortunately it did not change anything.

@ivan
Copy link
Member

ivan commented Jan 25, 2019

My workaround is currently to use the official release (with JetBrains JDK) in ~/opt/idea with an ~/opt/idea-shell.nix consisting of

{ pkgs ? import <nixpkgs> {} }:

(pkgs.buildFHSUserEnv {
  name = "intellij-idea-env";
  targetPkgs = pkgs: (
    with pkgs; [ udev which alsaLib fontconfig freetype pango zlib glib gtk2 cairo gdk_pixbuf atk git ]) ++ (
    with pkgs.xorg; [ libX11 libXcursor libXext libXtst libXi libXp libXt libXrender libXxf86vm ]);
  runScript = "~/opt/idea/bin/idea.sh";
}).env

and

nix-shell ~/opt/idea-shell.nix

to build/start it.

Cursor themes / hidpi cursors seem to work fine in the FHS environment.

@dmarcuse
Copy link

Any update on this? It still seems to be an issue on the unstable channel.

@alapshin
Copy link
Contributor Author

alapshin commented Mar 14, 2020

As far a I can tell Android Studio from nixpkgs now uses system wide KDE cursor theme but IntelliJ IDEA doesn't. I'm not sure was it something that was patched in Android Studio upstream or there are some differences between Android Studio and IntelliJ IDEA nix packages.

@stale
Copy link

stale bot commented Sep 10, 2020

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 10, 2020
@Jiehong
Copy link
Contributor

Jiehong commented Oct 9, 2020

I confirm this still happens on 20.03 at least (under the gnome desktop) for:

  • Intellij IDEA Community
  • Pycharm community.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 9, 2020
@ataraxus
Copy link

Works now on Ubuntu 20.04 with Intelli 2020.3.1

@alapshin
Copy link
Contributor Author

Yes, I can confirm that it works on NixOS unstable channel with IDEA 2020.3.1 and Android Studio 4.1.1

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

6 participants