Page 1 of 1

External Devices - Prevent tab from opening

Posted: 08 Jun 2018, 15:38
by enorthwood
Hello,

I am close to being finished with my own build for Kiosk-Cloud. How do I stop the new tab from opening in firefox when a user sticks their usb drive into the tower? I don't want this tab to open as it may confuse guests.

Best Regards,
Liz

External Devices - Prevent tab from opening

Posted: 08 Jun 2018, 16:08
by fanthom
Hello Liz,

I understand you want usb stick to be automounted but its content should not be displayed in the browser by default?

If yes then please use this parameter:

Code: Select all

run_command=sed -i 's|$browser /media|$browserr /media|' /sbin/udev-automount
If you dont want the sticks to be automounted at all then please remove:
removable_devices=yes

from your kiosk config.

External Devices - Prevent tab from opening

Posted: 08 Jun 2018, 16:43
by enorthwood
Hello Fanthom,

Thank you as always for your speedy response. Is there a way for the system to read the device label, rather than mounting it as "media?"

Best Regards,
Liz

External Devices - Prevent tab from opening

Posted: 08 Jun 2018, 17:07
by enorthwood
Hmm,

I put the parameter in the kiosk config file as specified, however the tab still opens in firefox when mounting the device.

Best Regards,
Liz Northwood

External Devices - Prevent tab from opening

Posted: 08 Jun 2018, 17:33
by fanthom
This file is renamed later so must be edited with a delay:

Code: Select all

run_command= ( sleep 10; sed -i 's|$browser /media|$browserr /media|' /sbin/udev-automount; ) &
"Is there a way for the system to read the device label, rather than mounting it as "media?""
This is bit more complicated as you must find the label of recently plugged device. You would have to edit 003-settings.xzm/sbin/udev-automount-disabled and read the label from udev variable or run blkid against partition. Then you can mount it under /mnt/device-label or anywhere you want.