-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
shutter: wrap XDG_DATA_DIRS
with hicolor-icon-theme
#39913
Conversation
Success on x86_64-linux (full log) Attempted: shutter Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: shutter Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it locally, seems to work fine
@@ -29,6 +31,7 @@ stdenv.mkDerivation rec { | |||
wrapProgram $out/bin/shutter \ | |||
--set PERL5LIB "${stdenv.lib.makePerlPath perlModules}" \ | |||
--prefix PATH : "${imagemagick.out}/bin" \ | |||
--prefix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting hicolor-icon-theme
first means it will have precedence over any user-installed themes in XDG_DATA_DIRS
.
If it is meant as a fallback for missing icons, --suffix
might be better here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're absolutely right, missed that, thanks!
When opening `shutter` it adds an indicator icon to the status bar. However this doesn't happen (and an ugly default icon will be used) if `shutter` can't find the `hicolor-icon-theme`. In such a case a warning like this can be found in `stderr`: ``` Gtk-WARNING **: Could not find the icon 'image-png'. The 'hicolor' theme was not found either, perhaps you need to install it. ``` As I don't think that we should force users to install this theme globally and several other packages including `tor-browser`, `gparted` or `clawsmail` add `hicolor-icon-theme` to their closure this seems to be a fair measure.
0ad1d46
to
40226e6
Compare
Success on x86_64-linux (full log) Attempted: shutter Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: shutter Partial log (click to expand)
|
Backported to 18.03: 92e6593 |
Motivation for this change
When opening
shutter
it adds an indicator icon to the status bar.However this doesn't happen (and an ugly default icon will be used) if
shutter
can't find thehicolor-icon-theme
. In such a case a warninglike this can be found in
stderr
:As I don't think that we should force users to install this theme
globally and several other packages including
tor-browser
,gparted
or
clawsmail
addhicolor-icon-theme
to their closure this seems tobe a fair measure.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)