This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Avoid overwriting GIO_EXTRA_MODULES env var#1873
Closed
lilyinstarlight wants to merge 1 commit intodylanaraps:masterfrom
lilyinstarlight:fix-gio-extra-modules
Closed
Avoid overwriting GIO_EXTRA_MODULES env var#1873lilyinstarlight wants to merge 1 commit intodylanaraps:masterfrom lilyinstarlight:fix-gio-extra-modules
lilyinstarlight wants to merge 1 commit intodylanaraps:masterfrom
lilyinstarlight:fix-gio-extra-modules
Conversation
|
FYI I'm on Ubuntu 20.04 and the variable is unset. ➜ meh.gQki5Z7 if [ -z ${GIO_EXTRA_MODULES+x} ]; then echo 'variable is unset'; else echo "value is: >$GIO_EXTRA_MODULES<"; fi
variable is unset |
Author
Thank you @fearphage! If that's the case, then this change should continue working on Ubuntu with no regression. |
|
@dylanaraps could you please merge this. Will fix a downstream issue NixOS/nixpkgs#108903. |
12 tasks
hykilpikonna
approved these changes
Jul 31, 2022
hykilpikonna
added a commit
to hykilpikonna/hyfetch
that referenced
this pull request
Jul 31, 2022
…g GIO_EXTRA_MODULES env var Upstream PR: dylanaraps/neofetch#1873 Thanks to @lilyinstarlight Co-authored-by: Lily Foster <lily@lily.flowers>
|
Thank you for your contribution! This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained. HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo. Read the "Running Updated Original Neofetch" section for more info! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The fix for #949 introduced a regression in environments where
GIO_EXTRA_MODULESis already set (and different from the provided value of/usr/lib/x86_64-linux-gnu/gio/modules/). This PR checks if the variable is already set before overwriting it.I was personally experiencing an issue with incorrect themes being reported on NixOS that seemed to be directly caused by overwriting the existing
GIO_EXTRA_MODULESenvironment variable. Using this patch fixed the issue.I'm not sure if the issue @fearphage had in #949 was due to the variable being unset entirely or set to something incorrect, so this should probably be tested on other systems (especially Ubuntu, judging by #949) to ensure there is no regression. Alternatively, just appending
/usr/lib/x86_64-linux-gnu/gio/modules/to the end of the variable if it already exists would possibly work, but I've not tested this.