Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open ROM: Permission denied #615

Open
arathron123 opened this issue Apr 28, 2024 · 1 comment
Open

Could not open ROM: Permission denied #615

arathron123 opened this issue Apr 28, 2024 · 1 comment

Comments

@arathron123
Copy link

arathron123 commented Apr 28, 2024

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.

@LIJI32
Copy link
Owner

LIJI32 commented Jul 5, 2024

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?

  1. Drop the ROM file into SameBoy's window
  2. Open the ROM path from command-line (sameboy /mnt/yourdrive/rom.gb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants