File tree 1 file changed +10
-10
lines changed 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,24 @@ import path from 'path';
4
4
const homeDirectory = os . homedir ( ) ;
5
5
const { env} = process ;
6
6
7
- export const data = env . XDG_DATA_HOME ||
7
+ export const xdgData = env . XDG_DATA_HOME ||
8
8
( homeDirectory ? path . join ( homeDirectory , '.local' , 'share' ) : undefined ) ;
9
9
10
- export const config = env . XDG_CONFIG_HOME ||
10
+ export const xdgConfig = env . XDG_CONFIG_HOME ||
11
11
( homeDirectory ? path . join ( homeDirectory , '.config' ) : undefined ) ;
12
12
13
- export const cache = env . XDG_CACHE_HOME || ( homeDirectory ? path . join ( homeDirectory , '.cache' ) : undefined ) ;
13
+ export const xdgCache = env . XDG_CACHE_HOME || ( homeDirectory ? path . join ( homeDirectory , '.cache' ) : undefined ) ;
14
14
15
- export const runtime = env . XDG_RUNTIME_DIR || undefined ;
15
+ export const xdgRuntime = env . XDG_RUNTIME_DIR || undefined ;
16
16
17
- export const dataDirs = ( env . XDG_DATA_DIRS || '/usr/local/share/:/usr/share/' ) . split ( ':' ) ;
17
+ export const xdgDataDirectories = ( env . XDG_DATA_DIRS || '/usr/local/share/:/usr/share/' ) . split ( ':' ) ;
18
18
19
- if ( data ) {
20
- dataDirs . unshift ( data ) ;
19
+ if ( xdgData ) {
20
+ xdgDataDirectories . unshift ( xdgData ) ;
21
21
}
22
22
23
- export const configDirs = ( env . XDG_CONFIG_DIRS || '/etc/xdg' ) . split ( ':' ) ;
23
+ export const xdgConfigDirectories = ( env . XDG_CONFIG_DIRS || '/etc/xdg' ) . split ( ':' ) ;
24
24
25
- if ( config ) {
26
- configDirs . unshift ( config ) ;
25
+ if ( xdgConfig ) {
26
+ xdgConfigDirectories . unshift ( xdgConfig ) ;
27
27
}
You can’t perform that action at this time.
0 commit comments