minor fixes
authorIan Kelling <ian@iankelling.org>
Mon, 18 Nov 2024 04:04:14 +0000 (23:04 -0500)
committerIan Kelling <ian@iankelling.org>
Mon, 18 Nov 2024 04:04:14 +0000 (23:04 -0500)
brc
distro-begin
distro-end
mymimes

diff --git a/brc b/brc
index ed3f92dc767c495299b126a37e4707c130187484..5dda2e0fe029561052d77bd803f61d1183fc4186 100644 (file)
--- a/brc
+++ b/brc
@@ -1326,7 +1326,7 @@ dtr() {
 }
 # date with all digits in a format i like
 dtd() {
-  date +%F_%T% "$@"
+  date +%F_%T "$@"
 }
 ccomp date dt dtr dtd
 
index f730f7d8bbb89fa687732e09319108ab69eadcf3..a7813299e1c4218e941026323e4beb6895cdf164 100755 (executable)
@@ -278,6 +278,8 @@ sudo /a/exe/lnf -T /a/bin /b
 sudo /a/exe/lnf -T /a/f /f
 sudo /a/exe/lnf -T /var/log/exim4 /el
 sudo /a/exe/lnf -T /a/f/ans /c
+sudo chown iank:iank /nocow/t
+sudo chmod 700 /nocow/t
 sudo /a/exe/lnf -T /nocow/t /t
 if has_p; then
   lnf -T /p/News ~/News
index a193a67ead5277bef95a7c7032280302fa3e8182..463580ff24bb051280c6a5f8274f3b0c56e91752 100755 (executable)
@@ -237,9 +237,9 @@ EOF
     fi
 
     if [[ ! -e /usr/share/debootstrap/scripts/noble ]]; then
-      # noble debootstrap as of 2024-07-05. not going to bother
+      # dir from within /a/opt/debootstrap_1.0.134ubuntu1_all.deb noble debootstrap as of 2024-07-05. not going to bother
       # adding a whole repo for one package which doesn't seem to generally change within a single distro version.
-      sudo dpkg -i /a/opt/debootstrap_1.0.134ubuntu1_all.deb
+      rsync -ra /a/opt/debootstrap_1.0.134ubuntu1_all-scripts/ /usr/share/debootstrap/scripts
     fi
 
     ;;&
diff --git a/mymimes b/mymimes
index a57e5522b76bb8b6ca4a73a1007f7b3382ea2d67..82637c725e720f5a954db8c6815a21345eed8180 100755 (executable)
--- a/mymimes
+++ b/mymimes
@@ -29,7 +29,9 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 shopt -s extglob nullglob
 
 echo '[Default Applications]' >/etc/xdg/defaults.list
+# make these be the default for everything they can handle
 sed -r '/^MimeType=/!d;s/^MimeType=//;s/;/=mpv.desktop\n/g' /usr/share/applications/mpv.desktop >>/etc/xdg/defaults.list
+sed -r '/^MimeType=/!d;s/^MimeType=//;s/;/=org.gnome.Evince.desktop\n/g' /usr/share/applications/org.gnome.Evince.desktop >>/etc/xdg/defaults.list
 
 echo x-scheme-handler/mailto=emacsmail.desktop >>/etc/xdg/defaults.list