gyazo / Gyazo-for-Linux

Gyazo for Linux
http://gyazo.com
353 stars 105 forks source link

Added copy_target and open_browser config options (also a config file bugfix) #160

Closed aiden3c closed 3 years ago

aiden3c commented 3 years ago

I added the ability to specify a "copy_target" in the config. If it's set to image it'll copy the raw image data to your clipboard, direct will copy the direct image url from Gyazo. If unspecified or anything else, it'll just copy the Gyazo link like normal.

I also added an "open_browser" option that will let you decide if you want to open the Gyazo page after you take a screenshot.

Finally, if someone has a config file with no content in it, it causes crashes and errors. I added a check to see if the file is empty, and if it is I replace the config variable with {}.

If you have any changes or questions let me know!

pastak commented 3 years ago

@Naishaline Thanks for your good works! I add some suggestion comments. plz check it.

aiden3c commented 3 years ago

I updated to match with your suggestions! Good call on the open_browser one.

pastak commented 3 years ago

Thank you for your contribution! We will release it soon in next version.