From 68df45da1940b437dd9fb7cced644458337f0e14 Mon Sep 17 00:00:00 2001 From: k1574 Date: Sat, 30 Jul 2022 00:56:51 +0500 Subject: [PATCH] XDG configuration added. --- dot/file/profile | 3 ++- xdg/applications/defaults.list | 6 ++++++ xdg/applications/xsam.desktop | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 xdg/applications/defaults.list create mode 100644 xdg/applications/xsam.desktop diff --git a/dot/file/profile b/dot/file/profile index 740fdf1..0b2b7f0 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -41,9 +41,10 @@ export_loop \ GOPATH '$HOME/app/go' \ GOBIN '$HOME/exe'\ COMPOSEREXE '$HOME/lib/composer/vendor/bin' \ + XDG_UTILS_DEBUG_LEVEL '3'\ XDG_CONFIG_HOME '$HOME/lib' \ XDG_RUNTIME_DIR '$HOME/tmp' \ - XDG_DATA_HOME '$HOME/app' \ + XDG_DATA_HOME '$HOME/lib/xdg' \ XCOMPOSEFILE '$HOME/lib/xcompose' \ ANDROID_NDK_HOME '$HOME/app/android/ndk' \ GIT 'https://github.com/$USER' \ diff --git a/xdg/applications/defaults.list b/xdg/applications/defaults.list new file mode 100644 index 0000000..7cf017f --- /dev/null +++ b/xdg/applications/defaults.list @@ -0,0 +1,6 @@ +[Default Applications] +text/plain=xsam.desktop +text/x-go=xsam.desktop +text/x-python=xsam.desktop +text/x-csrc=xsam.desktop + diff --git a/xdg/applications/xsam.desktop b/xdg/applications/xsam.desktop new file mode 100644 index 0000000..41d0d21 --- /dev/null +++ b/xdg/applications/xsam.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] + +Type=Application +Version=1.0 +Name=xsam +Comment=Sam text editor for X +Exec=xsam +Terminal=false +Categories=Java;