Custom location of greenshot.ini

Description

None

Environment

None

Activity

Show:
Nicolaj Rasmussen
July 15, 2020, 1:46 PM

Accidentally submitted using ENTER, sorry.

Description: I run Greenshot from a network location, but Greenshot saves settings in subdir Greenshot\greenshot.ini. If I want to allow others to use Greenshot from the same location, I need to have Greenshot.ini personalized.

Is it possible to direct Greenshot to save settings into the userprofile, fx %APPDATA%?

Robin Krom
July 17, 2020, 10:19 PM

No worries about how you submit your information

The behavior you want, is the default behavior of Greenshot. You didn’t say how you did setup Greenshot, and where you downloaded it from. But I guess you are using the .zip and unpacked it to some network drive?

The .zip is used for portable usage, which means everything is stored in the same directory as you start Greenshot from. As the Greenshot.exe is the same in every download, we just place logic inside which when it finds the greenshot.ini in the startup directory, it will store there. The fix is that you should remove the .ini which was in that directory, afterwards it should work as you want, there is even more possible, read about it here: https://getgreenshot.org/faq/what-is-the-best-way-to-control-greenshots-configuration-at-install-time/

But I also believe (it has been LONG ago I wrote that) the configuration for logging is in such a way that it is also in the same directory, which will cause issues when multiple people are using Greenshot. It would be best if you copied the log4net config file from an normally installed Greenshot.

One thing, if you have people running a .exe from a file share, the file is in use and you can never make an update. Might cause issues in the future, just so you know.

Btw. this sounds very much as commercial usage, please consider donating to support our work (or tell your boss).

Assignee

Unassigned

Reporter

Nicolaj Rasmussen

Components

None

Affects versions

None

Labels

None

Priority

Major
Configure