Short version:

  • This works: printf 'options.plugins_url=""\noptions.motd_url=""\n' > 
~/.visidatarc
  • Your earlier suggestion does not work anymore.


Boring technical details follow.

On Mon 13 Dec 2021 18:58:27 -0800, Anja wrote:
> For now, you can set `options.plugins_url=None` to your `~/.visidatarc` to
> turn that off. `open-plugins` will not work, but if you do not want your
> software making network requests, you probably would not want that feature.

I am a nosy bystander.
I do not use visicalc (I use awk and sqlite 😉).

By default "visidata" causes two files to be created (by downloading).

    ~/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fmotd-2.2.1
    ~/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fplugins%2Fplugins.jsonl

One of them "leaks" the visidata version number.

    https://sources.debian.org/src/visidata/2.2.1-1/visidata/motd.py/?hl=8#L16

Your suggested option did NOT have any effect (both files are created):

    echo options.plugins_url=None > ~/.visidatarc

However, this DID work (neither file is created):

    printf 'options.plugins_url=""\noptions.motd_url=""\n' > ~/.visidatarc

A full transcript is attached.
bash5$ mmdebstrap bullseye /dev/null \
        --customize-hook='chroot $1 env HOME=/root bash; false' \
        --include=visidata,ca-certificates
> > I: automatically chosen mode: unshare
I: chroot architecture amd64 is equal to the host's architecture
I: automatically chosen format: tar
I: using /tmp/mmdebstrap.CSr8eY4FbU as tempdir
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing essential packages...
done
I: downloading apt...
done
I: installing apt...
done
I: installing remaining packages inside the chroot...
done
done
done
I: running --customize-hook in shell: sh -c 'chroot $1 env HOME=/root bash; 
false' exec /tmp/mmdebstrap.CSr8eY4FbU
root@hera:/# visidata
› visidata_menu| user_macros | saul.pw/VisiData v2.2.1 | Ctrl+H opens help      
                                                                                
     open-vd        11 metasheets q
root@hera:/# root@hera:/# find /root/
/root/
/root/.visidata
/root/.visidata/cache
/root/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fmotd-2.2.1
/root/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fplugins%2Fplugins.jsonl
/root/.bashrc
/root/.profile
root@hera:/# rm -rf /root/.visidata
root@hera:/# echo options.plugins_url=None > ~/.visidatarc
root@hera:/# visidata
› visidata_menu| user_macros | saul.pw/VisiData v2.2.1 | Ctrl+H    open-vd      
  11 metasheets q
root@hera:/# root@hera:/# find /root/
/root/
/root/.visidata
/root/.visidata/cache
/root/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fplugins%2Fplugins.jsonl
/root/.visidata/cache/https%3A%2F%2Fvisidata.org%2Fmotd-2.2.1
/root/.visidatarc
/root/.bashrc
/root/.profile
root@hera:/# rm -rf /root/.visidata
root@hera:/# printf 'options.plugins_url=""\noptions.motd_url=""\n' > 
~/.visidatarc
root@hera:/# visidata
› visidata_menu| user_macros | saul.pw/VisiData v2.2.1 | Ctrl+H    open-vd      
  11 metasheets q
root@hera:/# root@hera:/# find /root/
/root/
/root/.visidatarc
/root/.bashrc
/root/.profile
root@hera:/# exit
E: run_chroot failed: E: command failed: chroot $1 env HOME=/root bash; false
W: listening on child socket failed: 
I: removing tempdir /tmp/mmdebstrap.CSr8eY4FbU...
bash5$ 

Reply via email to