Is there a way to prevent rox from opening when mounting a drive?
I do have links to portable apps on a separate drive on the desktop and it is tedious to have to close the rox window every time after mounting that drive.
My most used puppies are xenial 32 and fossa 64 9.5.
How to prevent rox from opening when mounting a drive? (solved)
Moderator: Forum moderators
How to prevent rox from opening when mounting a drive? (solved)
Reason: added solved
- wizard
- Posts: 1593
- Joined: Sun Aug 09, 2020 7:50 pm
- Has thanked: 2132 times
- Been thanked: 504 times
Re: Prevent rox from opening when mounting a drive
Try menu>File System> Pmount, then click the down arrow on the drive and select: Mount partition at boot.
wizard
Big pile of OLD computers
Re: Prevent rox from opening when mounting a drive
Thanks wizard,
this is not exactly what I wanted, but it works and as it's not really a security problem for me if the drive is automatically mounted at boot I probably will succumb to this solution.
dellus
- wizard
- Posts: 1593
- Joined: Sun Aug 09, 2020 7:50 pm
- Has thanked: 2132 times
- Been thanked: 504 times
Re: How to prevent rox from opening when mounting a drive?
@dellus
Here's another possible solution:
https://www.forum.puppylinux.com/viewto ... 884#p64884
wizard
Big pile of OLD computers
- MochiMoppel
- Posts: 1118
- Joined: Mon Jun 15, 2020 6:25 am
- Location: Japan
- Has thanked: 17 times
- Been thanked: 359 times
Re: How to prevent rox from opening when mounting a drive?
@wizard I went through your linked posts and I noticed, that the most simple solution (click on a drive icon to mount) was dismissed by a user who doesn't use drive icons.
However if I understand @dellus correctly he uses the drive icons to mount. The only annoyance is the automatic opening of a ROX window.
To prevent this it needs a small change in the file /usr/local/pup_event/drive_all
1) Open /usr/local/pup_event/drive_all with a text editor, e.g. geany
2) find line
defaultfilemanager_x /mnt/$xONEDRVNAME &
In my version it's line 165
3) comment out this line by preceding it with a '#'
# defaultfilemanager_x /mnt/$xONEDRVNAME &
4) save the file
From now on clicking on the icon of an unmounted drive will just mount it (notice the mount symbol on the icon)
Subsequent clicks will open the drive as usual.
- wizard
- Posts: 1593
- Joined: Sun Aug 09, 2020 7:50 pm
- Has thanked: 2132 times
- Been thanked: 504 times
Re: How to prevent rox from opening when mounting a drive?
@dellus
One more option is to use MOUNT_drv. MOUNT_drv is a modified Pmount that mounts without opening Rox. You can put MOUNT_drv anywhere (I keep mine in /root/my-applications/bin) then put a symlink on the desktop or even in the JWM tray. In use you click MOUNT_drv, then choose the drive to mount.
Pick the option you like best.
wizard
- Attachments
-
- MOUNT_drv.gz
- Remove fake .gz
- (27.46 KiB) Downloaded 9 times
Big pile of OLD computers
Re: How to prevent rox from opening when mounting a drive?
@MochiMoppel: Thanks, your solution is exactly what I wanted, works like charm. At least in Fossapup65 95. In Xenial 32 there is no /usr/local/pup_event/drive_all. But nevermind.
@wizard: thanks again for MOUNT_drv. It works for me. An extra click compared to directly clicking a drive icon. But as an alternative solution if others fail worth keeping.
The three methods can be used combined. So I have something to play with.
dellus