gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.03k stars 325 forks source link

Ability to modify settings file path #273

Open kohlerdominik opened 6 years ago

kohlerdominik commented 6 years ago

I love this piece of software. I run it on a raspberry for timelapse videos.

However, there's this script for the raspberry, to make the filesystem read-only (https://www.raspberrypi.org/blog/adafruits-read-only/ ). It really solves most of memory card issues on power loss. And i added an extra partition, which is still writable (for config files). However, the home directory is not writable.

Now, gphoto2 strictly writes it's settings file only to the home-directory, and so i can't save any settings on my raspberry. I think, most options can be given by the parameters. But it would be really nice, if a custom path to the settings files can be specified as parameter (for read and write), and this can maybe be saved to an alias or specified every time, so that i's possible to use it on a read-only-system.

msmeissn commented 6 years ago

Are you making it readonly on your own?

Then you could do a symklink from $HOME/.gphoto to the place where you can still write.

Alternatively, you could set $HOME to another location in your script calling gphoto2 , as it is only used for the setting file.