NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.11k forks source link

Graphical applications do not use Ubuntu's gtk theme correctly #24006

Open expipiplus1 opened 7 years ago

expipiplus1 commented 7 years ago

Issue description

When starting a GUI application on Ubuntu one gets the following warnings printed to stderr. The theme of the GUI program is not the same as the rest of the system.

Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

Steps to reproduce

$ nix-shell -p electron --run electron

Additionally one can resize the window so that a scrollbar is present; observe that this isn't the Ubuntu 'overlay scrollbar'.

Technical details

Ericson2314 commented 7 years ago

Emacs looks especially bad; It doesn't spit out any clues on the standard streams, unfortunately.

expipiplus1 commented 6 years ago

Another log with a couple of new messages:

Gtk-Message: 10:21:46.538: Failed to load module "overlay-scrollbar"
Gtk-Message: 10:21:46.546: Failed to load module "atk-bridge"
Gtk-Message: 10:21:46.546: Failed to load module "unity-gtk-module"

(quartus:14678): Gtk-WARNING **: 10:21:46.555: Unable to locate theme engine in module_path: "murrine",

<repeated many times>

(quartus:14678): Gtk-WARNING **: 10:21:46.558: Unable to locate theme engine in module_path: "murrine",
Gtk-Message: 10:21:46.558: Failed to load module "canberra-gtk-module"
nh2 commented 5 years ago

I have this too; here's an example what gajim looks like from 18.09 on Ubuntu 16.04:

screenshot from 2018-12-05 01-32-16

meld looks even worse and is absolutely unusable, because you can't see where the buttons are.

nh2 commented 5 years ago

Is is possible to change the GTK theme somehow, only for nix-installed applications, so that this doesn't happen?

mraxilus commented 4 years ago

Has anyone found a workaround for this? I'm trying to launch the joplin-desktop package. I get the follwing output:

Gtk-Message: 23:26:34.219: Failed to load module "canberra-gtk-module"
Gtk-Message: 23:26:34.220: Failed to load module "canberra-gtk-module"
Trace/breakpoint trap (core dumped)
jtojnar commented 4 years ago

Setting something like this GTK_PATH="${gtk-engine-murrine}/lib/gtk-2.0:${gtk_engines}/lib/gtk-2.0" might help for the GTK 2 apps regarding

(quartus:14678): Gtk-WARNING **: 10:21:46.558: Unable to locate theme engine in module_path: "murrine",

We generally consider theming user’s responsibility as we cannot know what theme and engine they like.

stale[bot] commented 4 years ago

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.

vishnu-prasad-kurupath commented 10 months ago

This issue with tidal-hifi and flameshot on debian. Any help would be appreciated !!