I don't quite know how to read /etc/fstab, but it doesn't appear that anything is set for automount. Here is the output for
cat /etc/fstab | grep /dev/cdrom
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
I don't care if the disc automounts, I just want to do something other than opening a window in KDE.
As for restoring previous sessions, KDE is opening a window even if I had them closed in the previous session.
Originally posted by jailbait
"How can I stop KDE from opening a file browser window when I insert a DVD or CD?"
Check /etc/fstab and see if automount is specified on the entries for your CD and DVD. If you are using automount then removing automount from the two relevent lines in /etc/fstab should solve the problem.
"The window is also opened on every login."
Check in kcontrol (control center) to see if you have told KDE to restore previous sessions. KDE may be mounting the devices because the previous session had the devices mounted.
kcontrol -> KDE components -> Session Manager -> Restore previous session