Alright, I will update this thread with better steps after I install kicksecure on another device and get this working from a fresh install again, and I try to narrow down the steps.
But I have to get everything I need working on that device before I install on other device, in particular the shared folders with vm, will make a thread about that now.
Due to an oversight when porting to LXQt, removable media automount was not being disabled. I’ve created and submitted the fixes for this. The rest of this post is written as if these fixes were already merged.
The current way of disabling removable media automount is in pcmanfm-qt’s configuration. Because of how pcmanfm-qt handles configuration, this can’t be enabled with a simple drop file, since:
pcmanfm-qt does not support drop directories for configuration, and
pcmanfm-qt stores a great deal of configuration details in each individual user’s home folder, thus making it so that system-wide configuration changes likely won’t take effect in existing user sessions.
Currently, system-wide pcmanfm-qt configuration in kicksecure-base-files, anon-ws-base-files, and anon-gw-base-files disable removable media automount. For existing users, some fixup code in legacy-dist is used to go through each users’ home directory, and disable removable media automount one time only. (If users choose to (re-)enable it in the future, that setting will be honored.)