How to prevent rox from opening when mounting a drive? (solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
dellus
Posts: 43
Joined: Sat Nov 14, 2020 9:15 pm
Been thanked: 6 times

How to prevent rox from opening when mounting a drive? (solved)

Post by dellus »

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.

Last edited by bigpup on Sat Apr 20, 2024 3:38 pm, edited 2 times in total.
Reason: added solved
User avatar
wizard
Posts: 1586
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2127 times
Been thanked: 503 times

Re: Prevent rox from opening when mounting a drive

Post by wizard »

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

dellus
Posts: 43
Joined: Sat Nov 14, 2020 9:15 pm
Been thanked: 6 times

Re: Prevent rox from opening when mounting a drive

Post by dellus »

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

User avatar
wizard
Posts: 1586
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2127 times
Been thanked: 503 times

Re: How to prevent rox from opening when mounting a drive?

Post by wizard »

@dellus
Here's another possible solution:

https://www.forum.puppylinux.com/viewto ... 884#p64884

wizard

Big pile of OLD computers

User avatar
MochiMoppel
Posts: 1115
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?

Post by MochiMoppel »

@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.

User avatar
wizard
Posts: 1586
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2127 times
Been thanked: 503 times

Re: How to prevent rox from opening when mounting a drive?

Post by wizard »

@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

dellus
Posts: 43
Joined: Sat Nov 14, 2020 9:15 pm
Been thanked: 6 times

Re: How to prevent rox from opening when mounting a drive?

Post by dellus »

@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

Post Reply

Return to “Beginners Help”