Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add GI_SCANNER_DISABLE_CACHE environment variable

  • Loading branch information...
commit 2330248ea37ad1251da58700ffb1ea0d578523ee 1 parent 0d969f4
Colin Walters cgwalters authored
Showing with 5 additions and 0 deletions.
  1. +3 −0  docs/g-ir-scanner.1
  2. +2 −0  giscanner/
3  docs/g-ir-scanner.1
@@ -133,6 +133,9 @@ Be verbose, include some debugging information.
The g-ir-scanner uses the XDG_DATA_DIRS variable to check for dirs,
the gir's are located in XDG_DATA_DIRS/share/gir-1.0. It is normally
set on a distribution so you shouldn't need to set it yourself.
+The variable GI_SCANNER_DISABLE_CACHE ensures that the scanner will
+not write cache data to $HOME.
Report bugs at in the glib product and
introspection component.
2  giscanner/
@@ -41,6 +41,8 @@ def _get_versionhash():
return hashlib.sha1(''.join(mtimes)).hexdigest()
def _get_cachedir():
+ if 'GI_SCANNER_DISABLE_CACHE' in os.environ:
+ return None
homedir = os.environ.get('HOME')
if homedir is None:
return None
Please sign in to comment.
Something went wrong with that request. Please try again.