From: b3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com> Date: Fri, 18 Aug 2023 00:43:44 +0000 (+0200) Subject: Merge pull request #301 from TinfoilSubmarine/android X-Git-Tag: v0.2.0.2~33 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/2f8df87079a5ce6a736df6339a41b6619c873dc6?hp=b6fe81f1cb69fe6406d20dc9a119b90ca6497913 Merge pull request #301 from TinfoilSubmarine/android --- diff --git a/programs/R.json b/programs/R.json new file mode 100644 index 0000000..4fdf768 --- /dev/null +++ b/programs/R.json @@ -0,0 +1,10 @@ +{ + "name": "R", + "files": [ + { + "path": "$HOME/R", + "movable": true, + "help": "Set R_LIBS_USER in `$HOME/.Renviron:\n\n```\nR_LIBS_USER=\"$XDG_DATA_HOME\"/R/x86_64-pc-linux-gnu-library\n```\n\nYou may find it necessary to append this line to the end of `/usr/lib/R/library/base/R/Rprofile`:\n\n```R.libPaths( c( \"$XDG_DATA_HOME/R/x86_64-pc-linux-gnu-library/\" , .libPaths() ) )```\n\n**Disclaimer: You may need to re-install your libraries**" + } + ] +} diff --git a/programs/ansible.json b/programs/ansible.json index 076a76a..dba6da9 100644 --- a/programs/ansible.json +++ b/programs/ansible.json @@ -2,8 +2,8 @@ "files": [ { "path": "$HOME/.ansible", - "movable": false, - "help": "See [this](https://github.com/ansible/ansible/commit/d7fbde4ea9db6cc44e81c39d699595330f4fa3c6) pull request.\n\nSeems to be implemented now, you should be able to set the _ANSIBLE_HOME_ environment variable.\n\nI couldn't get it to work yet unfortunately, and you might need to wait for a new release.\n" + "movable": true, + "help": "Export the following environment variables:\n\n```bash\nexport ANSIBLE_HOME=\"$XDG_DATA_HOME\"/ansible\n```\n" } ], "name": "ansible" diff --git a/programs/antigen.json b/programs/antigen.json new file mode 100644 index 0000000..736a3c1 --- /dev/null +++ b/programs/antigen.json @@ -0,0 +1,10 @@ +{ + "files": [ + { + "path": "$HOME/.antigen", + "movable": true, + "help": "Export the following environmental variable:\n\n```bash\nexport ADOTDIR=\"$XDG_DATA_HOME\"/antigen\n```\n\n_Note: do_ **not** _move the pre-existing antigen folder from $HOME/.antigen to the new location because it would make antigen crash (the reason is antigen hardcodes the \"$HOME/.antigen\" directory in the `init.zsh` file upon installation of the bundle), simply_ **remove** _\"$HOME/.antigen\" and the next time you will spawn an instance of zsh, antigen will install all the plugins correctly in the new location (and hardcode the new, correct, location)._\n" + } + ], + "name": "antigen" +} diff --git a/programs/cups.json b/programs/cups.json index 5620087..c947d24 100644 --- a/programs/cups.json +++ b/programs/cups.json @@ -1,10 +1,10 @@ { - "name": "CUPS", - "files": [ - { - "path": "$HOME/.cups", - "movable": false, - "help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/OpenPrinting/cups/issues/10\n" - } - ] + "name": "CUPS", + "files": [ + { + "path": "$HOME/.cups", + "movable": true, + "help": "Supported.\n\nThe file $HOME/.cups can be moved to $XDG_CONFIG_HOME/cups.\n\n_Relevant issue:_ https://github.com/OpenPrinting/cups/issues/10\n" + } + ] } diff --git a/programs/davfs2.json b/programs/davfs2.json new file mode 100644 index 0000000..16687f6 --- /dev/null +++ b/programs/davfs2.json @@ -0,0 +1,10 @@ +{ + "name": "davfs2", + "files": [ + { + "path": "$HOME/.davfs2", + "movable": false, + "help": "Currently unsupported.\n\n_Relevant issue:_ https://savannah.nongnu.org/support/?110249\n" + } + ] +} diff --git a/programs/gdb.json b/programs/gdb.json index 0f066a8..d9121d2 100644 --- a/programs/gdb.json +++ b/programs/gdb.json @@ -4,7 +4,7 @@ { "path": "$HOME/.gdbinit", "movable": true, - "help": "Alias gdb to use custom locations:\n\n```bash\nalias gdb=gdb -n -x $XDG_CONFIG_HOME/gdb/init```\n" + "help": "XDG is supported out-of-the-box, so you can simply move the file to _$XDG_CONFIG_HOME/gdb/gdbinit_.\n" }, { "path": "$HOME/.gdb_history", diff --git a/programs/influx-cli.json b/programs/influx-cli.json new file mode 100644 index 0000000..d76f312 --- /dev/null +++ b/programs/influx-cli.json @@ -0,0 +1,11 @@ + +{ + "name": "influx-cli", + "files": [ + { + "path": "$HOME/.influx_history", + "movable": false, + "help": "Currently unsupported\n\n _Relevant issue:_ https://github.com/influxdata/influx-cli/issues/514" + } + ] +} diff --git a/programs/john.json b/programs/john.json new file mode 100644 index 0000000..5e3e1e5 --- /dev/null +++ b/programs/john.json @@ -0,0 +1,10 @@ +{ + "name": "john", + "files": [ + { + "path": "$HOME/.john", + "movable": false, + "help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/openwall/john/issues/4552\n" + } + ] +} diff --git a/programs/minetest.json b/programs/minetest.json new file mode 100644 index 0000000..72c794f --- /dev/null +++ b/programs/minetest.json @@ -0,0 +1,10 @@ +{ + "name": "minetest", + "files": [ + { + "path": "$HOME/.minetest", + "movable": true, + "help": "Export the following environment variables:\n\n```bash\nexport MINETEST_USER_PATH=\"$XDG_DATA_HOME\"/minetest\n```\n" + } + ] +} diff --git a/programs/openjdk.json b/programs/openjdk.json index b40319c..2a031d0 100644 --- a/programs/openjdk.json +++ b/programs/openjdk.json @@ -3,7 +3,7 @@ { "path": "$HOME/.java", "movable": false, - "help": "**Disclaimer: some applications don't respect this setting.**\n\nExport the following environment variable:\n\n```bash\nexport _JAVA_OPTIONS=-Djava.util.prefs.userRoot=\"$XDG_CONFIG_HOME\"/java\n```\n\nSee [ticket](https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8290140)" + "help": "**Disclaimer: some applications don't respect this setting.**\n\nExport the following environment variable:\n\n```bash\nexport _JAVA_OPTIONS=-Djava.util.prefs.userRoot=\"$XDG_CONFIG_HOME\"/java\n```\n\nSee [ticket](https://bugs.java.com/bugdatabase/view_bug?bug_id=8290140)" } ], "name": "openjdk" diff --git a/programs/pciutils.json b/programs/pciutils.json new file mode 100644 index 0000000..bcd8957 --- /dev/null +++ b/programs/pciutils.json @@ -0,0 +1,10 @@ +{ + "name": "pciutils", + "files": [ + { + "path": "$HOME/.pciids-cache", + "movable": false, + "help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/pciutils/pciutils/issues/148\n" + } + ] +} diff --git a/programs/psensor.json b/programs/psensor.json new file mode 100644 index 0000000..03cbdc2 --- /dev/null +++ b/programs/psensor.json @@ -0,0 +1,10 @@ +{ + "name": "psensor", + "files": [ + { + "path": "$HOME/.psensor", + "movable": false, + "help": "Currently unsupported.\n\n_Relevant patch:_ https://gitlab.com/jeanfi/psensor/-/merge_requests/27\n" + } + ] +} diff --git a/programs/rstudio.json b/programs/rstudio.json deleted file mode 100644 index 3b96acf..0000000 --- a/programs/rstudio.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "rstudio", - "files": [ - { - "path": "$HOME/R", - "movable": true, - "help": "Default directory location can be configured in RStudio\nReference: https://www.accelebrate.com/library/how-to-articles/r-rstudio-library" - } - ] -} diff --git a/programs/vim.json b/programs/vim.json index f6f20ff..5d9475a 100644 --- a/programs/vim.json +++ b/programs/vim.json @@ -1,7 +1,7 @@ { "files": [ { - "help": "Since 7.3.1178 vim will search for ~/.vim/vimrc if ~/.vimrc is not found.\n\n\"$XDG_CONFIG_HOME\"/vim/vimrc\n```vim\nset runtimepath^=$XDG_CONFIG_HOME/vim\nset runtimepath+=$XDG_DATA_HOME/vim\nset runtimepath+=$XDG_CONFIG_HOME/vim/after\n\nset packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim\nset packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after\n\nlet g:netrw_home = $XDG_DATA_HOME.\"/vim\"\ncall mkdir($XDG_DATA_HOME.\"/vim/spell\", 'p')\n\nset backupdir=$XDG_STATE_HOME/vim/backup | call mkdir(&backupdir, 'p')\nset directory=$XDG_STATE_HOME/vim/swap | call mkdir(&directory, 'p')\nset undodir=$XDG_STATE_HOME/vim/undo | call mkdir(&undodir, 'p')\nset viewdir=$XDG_STATE_HOME/vim/view | call mkdir(&viewdir, 'p')\n\nif !has('nvim') | set viminfofile=$XDG_STATE_HOME/vim/viminfo | endif\n```\n\n~/.profile\n```\nexport GVIMINIT='let $MYGVIMRC=\"$XDG_CONFIG_HOME/vim/gvimrc\" | source $MYGVIMRC'\nexport VIMINIT='let $MYVIMRC=\"$XDG_CONFIG_HOME/vim/vimrc\" | source $MYVIMRC'\n```\n[G]VIMINIT environment variable will also affect Neovim. If separate configs for Vim and Neovim are desired then the following will be a better choice:\n\n```\nexport GVIMINIT='let $MYGVIMRC = !has(\"nvim\") ? \"$XDG_CONFIG_HOME/vim/gvimrc\" : \"$XDG_CONFIG_HOME/nvim/init.gvim\" | so $MYGVIMRC'\nexport VIMINIT='let $MYVIMRC = !has(\"nvim\") ? \"$XDG_CONFIG_HOME/vim/vimrc\" : \"$XDG_CONFIG_HOME/nvim/init.vim\" | so $MYVIMRC'\n```\n\nAdditional information:\nhttps://blog.joren.ga/vim-xdg\nhttps://tlvince.com/vim-respect-xdg\n", + "help": "Since 7.3.1178 vim will search for ~/.vim/vimrc if ~/.vimrc is not found.\n\n\"$XDG_CONFIG_HOME\"/vim/vimrc\n```vim\nset runtimepath^=$XDG_CONFIG_HOME/vim\nset runtimepath+=$XDG_DATA_HOME/vim\nset runtimepath+=$XDG_CONFIG_HOME/vim/after\n\nset packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim\nset packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after\n\nlet g:netrw_home = $XDG_DATA_HOME.\"/vim\"\ncall mkdir($XDG_DATA_HOME.\"/vim/spell\", 'p')\n\nset backupdir=$XDG_STATE_HOME/vim/backup | call mkdir(&backupdir, 'p')\nset directory=$XDG_STATE_HOME/vim/swap | call mkdir(&directory, 'p')\nset undodir=$XDG_STATE_HOME/vim/undo | call mkdir(&undodir, 'p')\nset viewdir=$XDG_STATE_HOME/vim/view | call mkdir(&viewdir, 'p')\n\nif !has('nvim') | set viminfofile=$XDG_STATE_HOME/vim/viminfo | endif\n```\n\n~/.profile\n```\nexport GVIMINIT='let $MYGVIMRC=\"$XDG_CONFIG_HOME/vim/gvimrc\" | source $MYGVIMRC'\nexport VIMINIT='let $MYVIMRC=\"$XDG_CONFIG_HOME/vim/vimrc\" | source $MYVIMRC'\n```\n[G]VIMINIT environment variable will also affect Neovim. If separate configs for Vim and Neovim are desired then the following will be a better choice:\n\n```\nexport GVIMINIT='let $MYGVIMRC = !has(\"nvim\") ? \"$XDG_CONFIG_HOME/vim/gvimrc\" : \"$XDG_CONFIG_HOME/nvim/init.gvim\" | so $MYGVIMRC'\nexport VIMINIT='let $MYVIMRC = !has(\"nvim\") ? \"$XDG_CONFIG_HOME/vim/vimrc\" : \"$XDG_CONFIG_HOME/nvim/init.vim\" | so $MYVIMRC'\n```\n\nAdditional information:\nhttps://jorengarenar.github.io/blog/vim-xdg\nhttps://tlvince.com/vim-respect-xdg\n", "movable": true, "path": "$HOME/.vimrc" }, @@ -17,4 +17,4 @@ } ], "name": "vim" -} \ No newline at end of file +} diff --git a/programs/xorg-xrdb.json b/programs/xorg-xrdb.json index 63c29d2..14dacf9 100644 --- a/programs/xorg-xrdb.json +++ b/programs/xorg-xrdb.json @@ -4,6 +4,11 @@ "path": "$HOME/.Xresources", "movable": true, "help": "xrdb loads these resources, wherever you call xrdb, add this flag:\n\n```bash\nxrdb -load \"$XDG_CONFIG_HOME/X11/xresources\"\n```\n\n_Note: It will probably be called by your Xsession file._\n" + }, + { + "path": "$HOME/.Xdefaults", + "movable": true, + "help": "Old version of .Xresources. xrdb loads these resources, wherever you call xrdb, add this flag:\n\n```bash\nxrdb -load \"$XDG_CONFIG_HOME/X11/xresources\"\n```\n\n_Note: It will probably be called by your Xsession file._\n" } ], "name": "xorg-xrdb" diff --git a/programs/zap-proxy.json b/programs/zap-proxy.json new file mode 100644 index 0000000..a3d6044 --- /dev/null +++ b/programs/zap-proxy.json @@ -0,0 +1,11 @@ +{ + "name": "ZAP Proxy", + "files": [ + { + "path": "$HOME/.ZAP", + "movable": false, + "help": "Currently unsupported.\n\n_Relevant issue:_ https://github.com/zaproxy/zaproxy/issues/7718" + } + ] +} +