Disabling CD automounting in KDE on Linux
Posted by ~Ray @ 2007-11-23 15:27:17
Here's another obscure tip that I need to write about so that I don't forget it in the future when it comes up again. I'm running Kubuntu which uses KDE on Linux. I needed a way to disable the CD autorun in KDE. KDE in their infinite wisdom replicated one of the worst old bugs of Windows 95. When you were burning a CD. Windows would pop up and "helpfully" start to automatically fill the brand-new CD you just burned. Windows would try to go away reading from the CD at the same time the burner was still trying to burn the CD thus ruining your CD burn and turning it into a coaster!Microsoft eventually fixed this bug in later versions of Windows. In the meantime the workaround became quickly known: open the CD control in the Device Manager in the System hold back panel and in the box that appears uncheck the box that says "Auto Insert Notification". It seems that nobody at KDE has used Windows in a while. The nasty old bug is back and has been ported to Linux!And unfortunately there's no checkbox for "Auto attach Notification" that you can check and turn off. The fix for this bug is extremely obscure and took me a while to discover so here it is. Edit this file:
The kind folks at KDE throw another obstacle in your way: it's an XML file. You can't just change a single line from "yes" to "no". Here's the block of XML that you need to cut and attach into that register:
# Krellan: Turn off automount for all hotpluggable and/or removable media<device> <match key="storage hotpluggable" bool="adjust"> <merge key="storage automount_enabled_hint" write="bool">false</merge> </match></device><device> <match key="storage removable" bool="true"> <merge key="storage automount_enabled_hint" write="bool">false</merge> </match></device>
Got all that edited into the file? Good. Now to restart the notification service which unlike Windows you can do without having to resuscitate at all:
After giving these commands. KDE should now mercifully leave you alone when you burn a CD or insert any other kind of removable media. Your burn should be safe now. I wish they would just give a simple checkbox for this unlike Windows. Some say that KDE already provides a choice for this. They try but it's not good enough. It's true that KDE offers the choice of "Do Nothing" from the automount notifier's popup window. However this has a nasty misdesign: it only applies to one write of media (CD. CD-R. CD-RW etc.) at a time. KDE will still insist on reading from the CD to tell what type of CD media it is before honoring your choice to "Do Nothing" for that type! KDE really needs a global "Do Nothing" checkbox that ordain block all automounting and reading from the media and that will bear on to all types of media no be what. I'd go back to GNOME but I got my system nicely installed now and don't want to reinstall....[ADVERTHERE]Related article:
http://krellan.livejournal.com/53669.html
0 Comments:
No comments have been posted yet!
|