desmume icon indicating copy to clipboard operation
desmume copied to clipboard

Configure screenshot save location

Open Soundtoxin opened this issue 3 months ago • 10 comments

State your operating system:

Linux, gtk3 version.

DesMuME version

0.9.13 (from GNU Guix repository)

Issue

When I take a screenshot with ctrl-s it seems to save to ~/Desktop, a directory I don't usually use. It might've even made that directory because there's nothing else in it besides my screenshots. It didn't ask me where to save and I don't see a spot to configure that. If there isn't an option already to do so, I would like a way to configure the location, maybe via config.cfg, but also via the GUI would probably be a good idea.

Soundtoxin avatar Sep 19 '25 09:09 Soundtoxin

Desktop is a fallback directory if standard images directory is not found. Check your DE configuration, you are probably missing it.

thesourcehim avatar Sep 19 '25 09:09 thesourcehim

I use Sway and it doesn't create any default directories. If you're talking about ~/Pictures, I have my own created ~/pictures and it'd bug me to have a duplicate or have to capitalize the one I have, so I still think this should be user-configurable. I would've expected ~/ or whatever the PWD was when launching as a fallback.

Soundtoxin avatar Sep 19 '25 09:09 Soundtoxin

Right now there're no options to configure any directories. If Pictures dir is not found, Desktop is checked, if that is not found either, then home dir is used. As a simple solution I can remove Desktop from check or replace it with Documents check for example.

thesourcehim avatar Sep 19 '25 09:09 thesourcehim

I have a lowercase "documents" I made already as well, haha. Well, consider this a feature request for configurable directories in the config then. I'll just deal with the current behavior for now. Although I also wonder if you could check for lowercase versions of these directories and use one if it exists. If my desmume screenshots appeared in my ~/pictures directory, that would be okay. Although ideally I would probably make something more specific just for desmume like ~/pictures/desmume and put that in my config.

Soundtoxin avatar Sep 19 '25 09:09 Soundtoxin

GTK3 frontend uses gtk functions to check for user specific directories, it does not check for them using directory names, so I can't "check" for lower- or upper-case. I'll keep your request in mind.

thesourcehim avatar Sep 19 '25 10:09 thesourcehim

I didn't realize that, interesting. If I use desmume-cli instead can I set a screenshot directory? Also, can I make it read my other config so I don't need to set up my keys again?

Soundtoxin avatar Sep 19 '25 11:09 Soundtoxin

if 58bbe693e1050654198837c20c548e39d6f2b420 is ported to gtk+3 frontend, then when changing keys in the gtk frontend, it will write a proper section for the purely SDL based cli frontend.

rofl0r avatar Sep 19 '25 13:09 rofl0r

if 58bbe69 is ported to gtk+3 frontend

Ok, I'll do it.

thesourcehim avatar Sep 19 '25 14:09 thesourcehim

@Soundtoxin, try saving key config with latest git GTK3 (I've ported the commit for that), should help you to switch to cli.

thesourcehim avatar Sep 22 '25 05:09 thesourcehim

Thanks, my keys now carry over to the CLI version, very cool.

Soundtoxin avatar Sep 22 '25 09:09 Soundtoxin