Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#1
So looking at the current automount system, I see skidoo's very valid point that spacefm desktop will still automount if that desktop is in use.

It is possible to set spacefm to not automount from the current automount-config gui, if folks think that is something it should do.

actually, it should probably be set to"always" not automount, which I can also do.

any thoughts?
Posts: 521
Shay
Joined: 20 Apr 2015
#2
I prefer AntiX just the way it comes installed. And the auto mount get used quite a bit.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#3
If automount is set to off I would expect it to be off in all situations. If it is set to on, then on. I may be biased in this though trying to keep consistency among the desktops via menus, startup, wallpaper utility, etc... I would consider a automount utility in the same category as the wallpaper app.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#4
dolphin_oracle wrote:So looking at the current automount system, I see skidoo's very valid point that spacefm desktop will still automount if that desktop is in use.
I do not know where the comments were made so the following do not draw from them.

In very generalised terms the Control Centre is often seen as controling"system type" settings. In that case I would favour on/off automount to also be system wide.

I dimly recall some mention in the past of antiX scripts that would benefit from having a central control point for (un)mounting (partitioning?). Perhaps there might be an opportunity to do it now if it is still relevant.
Posts: 850
fatmac
Joined: 26 Jul 2012
#5
I would prefer automount default to off, as it can get very annoying when partitioning drives ready for installing. __{{emoticon}}__
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#6
prefer [spacefm] automount default to off, as it can get very annoying when partitioning drives ready for installing
I agree -- in order to preclude confusion, spacefm automount default should be set to"off".
For me, while betatesting the live-usb-maker script, the (by default, spacefm forced automount) effect was maddening.
It is possible to set spacefm to not automount from the current automount-config gui
You've found a magic bullet? When I investigated, my takeaway was:

spacefm, when launched, reads automount directive from its preferences file.
For an"enhanced" controlCentre utility script to be effective in editing the spacefm preferences file,
it would need to"killall spacefm" before writing to the spacefm prefs file
(or refuse to proceed, prompting the user to manually close all running spacefm instances).
A further complication: detecting/handling case where"spacefm -d" is currently managing the desktop

In any event, editing that prefs file (even if it is not locked / in use) is probably inadvisable.
(fileS plural. See the list below. Separate files are referenced by sudo-launched instances of spacefm)
Careful, don't wreck the session, session-last, session-prior spacefm files!

A possible approach would be to customize spacefm's default .../hand_fs_+def pathed scripts,
but IMO that would just shift (and further compound) spacefm users' confusion regarding automount governance.

Code: Select all

/etc/skel/.config/spacefm/session
/etc/spacefm/demo-as-root
/etc/spacefm/spacefm.conf
/home/demo/.config/spacefm
/home/demo/.config/spacefm/desktop0
/home/demo/.config/spacefm/scripts
/home/demo/.config/spacefm/session
/home/demo/.config/spacefm/session-last
/home/demo/.config/spacefm/session-prior
/home/demo/.config/spacefm/scripts/hand_fs_+def
/home/demo/.config/spacefm/scripts/hand_fs_+def/hand-device-info.sh
/home/demo/.config/spacefm/scripts/hand_fs_+def/hand-device-mount.sh
/home/demo/.config/spacefm/scripts/hand_fs_+def/hand-device-unmount.sh
/root/.config/spacefm
/root/.config/spacefm/session
/root/.config/spacefm/session-last
/root/.config/spacefm/session-prior
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#7
A couple of points.

1. The current automount is run by the user.

2. The space desktop runs as user.

3. I know how to customize the session files. Antix 16.1 actually ships with a customer file. It needs some tweaks for the future now that it's been in action for a while, but it's a start. There is a /etc/xdg system for distro-specific changes. You can't do everything with them, but you can do a lot.

4. I've been experimenting with just what you suggest...killing spacefm and restarting. I think I can do it without killing the session files after reading up on how they work.