Could not open ROM: Permission denied
Opened this issue · 1 comments
I'm running sameboy on ubuntu linux. When I try to open a rom that is mounted in an ntfs drive, it shows the error in the title (Could not open ROM: Permission denied). If I copy the rom to my home folder, I can open it.
It seems the problem is that in the external drive, the owner of the file is root, while in my home folder, my normal username is the owner. I can't change the ownership of the file in the external file as it is mounted with all files owned by root (with ntfs-3g). Also, I tried running sameboy with sudo, but it gives another error (mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified)
With vba (visualboyadvance) I can open both roms without any problem. Is this something that can be fixed in sameboy? Or do you have any workaround so that I don't have to copy my roms into my home folder every time?
Thanks.
SameBoy doesn't really do anything special to open files, it merely uses the fopen
libc function. I suspect it's the GTK open dialog doing something funny with your NTFS drive. Can you see if any of these work?
- Drop the ROM file into SameBoy's window
- Open the ROM path from command-line (
sameboy /mnt/yourdrive/rom.gb
)