]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Merge pull request #301 from TinfoilSubmarine/android
authorb3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com>
Fri, 18 Aug 2023 00:43:44 +0000 (02:43 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Aug 2023 00:43:44 +0000 (02:43 +0200)
16 files changed:
programs/R.json [new file with mode: 0644]
programs/ansible.json
programs/antigen.json [new file with mode: 0644]
programs/cups.json
programs/davfs2.json [new file with mode: 0644]
programs/gdb.json
programs/influx-cli.json [new file with mode: 0644]
programs/john.json [new file with mode: 0644]
programs/minetest.json [new file with mode: 0644]
programs/openjdk.json
programs/pciutils.json [new file with mode: 0644]
programs/psensor.json [new file with mode: 0644]
programs/rstudio.json [deleted file]
programs/vim.json
programs/xorg-xrdb.json
programs/zap-proxy.json [new file with mode: 0644]

diff --git a/programs/R.json b/programs/R.json
new file mode 100644 (file)
index 0000000..4fdf768
--- /dev/null
@@ -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**"
+        }
+    ]
+}
index 076a76ac11695ebb9c97d21d55ca2e77c28b4606..dba6da959add111f5df273d3ffbaf5a46f27bba8 100644 (file)
@@ -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 (file)
index 0000000..736a3c1
--- /dev/null
@@ -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"
+}
index 5620087ddf6fe96c0314dc4ceb20c1ceac17adde..c947d2488e7dfd41fe4ab36075f6cb3cb2b51a04 100644 (file)
@@ -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 (file)
index 0000000..16687f6
--- /dev/null
@@ -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"
+        }
+    ]
+}
index 0f066a8948d92f4246fdb80de3ebf35267fed091..d9121d27a6393bccc193bbae1659ec7ca81e4a0d 100644 (file)
@@ -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 (file)
index 0000000..d76f312
--- /dev/null
@@ -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 (file)
index 0000000..5e3e1e5
--- /dev/null
@@ -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 (file)
index 0000000..72c794f
--- /dev/null
@@ -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"
+        }
+    ]
+}
index b40319c0dba41f4e47a76e9fe88071b3ad3826e7..2a031d0f688710c567423260a3dc450744e949ba 100644 (file)
@@ -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 (file)
index 0000000..bcd8957
--- /dev/null
@@ -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 (file)
index 0000000..03cbdc2
--- /dev/null
@@ -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 (file)
index 3b96acf..0000000
+++ /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"
-        }
-    ]
-}
index f6f20ff79a846fc869398f86386d23af8b92537a..5d9475a027f83f7bff56b916fdeafb219317b1f9 100644 (file)
@@ -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
+}
index 63c29d2fdb38c9af23b54569694f7f0ea164981b..14dacf919561579c75cf228382ea83ecb15a863b 100644 (file)
@@ -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 (file)
index 0000000..a3d6044
--- /dev/null
@@ -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"
+        }
+    ]
+}
+