Closed ghost closed 13 years ago
Wow.
Thank you :) I need some time to examine and test your code.
You may not want to add 19a9a83 (it is not related to my addition), but for me running losetup with sudo didn't work properly so I removed it since the gained functionality was nice but not neccessary for me. I noticed this method was being called way too often, though. Since it spawns a new process every time this should be reduced.
I test mount improvements and seems it works fine. Good job! I'l gladly include your code to my source tree. Thanks :)
btw: If you wish, you can send to me information which can be placed in q4wine's about dialog.
Well, I'l revert 19a9a83 changes. I knew it is a horrible dirty hack, but I can't find any other way to get information from loop device. I plan to add cdemu (http://cdemu.org) support and use it as default mount backend.
The commits create new symlinks when mounting $WINEPREFIX/dosdevices/${DRIVE}: pointing to the mountpoint and $WINEPREFIX/dosdevices/${DRIVE}:: pointing to the Image file (not the double colon). Apparently this is needed so that the images are recognised as a proper cd/dvd drive. This also adds on column to the database which determines which wine drive to use for the mounted images (configurable in the GUI)