Friday, April 6, 2018

Change default values in gThumb flickr upload.


I frequently use gThumb to upload pictures to flickr and to avoid upload a file with the wrong privacy settings, I wanted to change the default values in the plug-in.


This is how I did it.


Changes are made in the file xport-to-flickr.ui
(save a backup).


I found the file in /usr/share/gthumb/ui/


So my path was:

/usr/share/gthumb/ui/export-to-flickr.ui



On line 38 we can see that ‘Private photos’ have the value of ‘4’.
21 <row> 22 <col id="0">0</col> 23 <col id="1" translatable="yes">Public photos</col> 24 </row> 25 <row> 26 <col id="0">1</col> 27 <col id="1" translatable="yes">Private photos, visible to family and friends</col> 28 </row> 29 <row> 30 <col id="0">2</col> 31 <col id="1" translatable="yes">Private photos, visible to friends</col> 32 </row> 33 <row> 34 <col id="0">3</col> 35 <col id="1" translatable="yes">Private photos, visible to family</col> 36 </row> 37 <row> 38 <col id="0">4</col> 39 <col id="1" translatable="yes">Private photos</col>
On line 339 the default are set to ‘0’ 336 <property name="visible">True</property> 337 <property name="can_focus">False</property> 338 <property name="model">privacy_liststore</property> 339 <property name="active">0</property> 340 <child>
Change it to a value between 0 and 4. 339 <property name="active">4</property>
No need to restart gThumb. Select a new picture, upload it and check on flickr so that the picture have been uploaded the way you intended. In a similar manner you can find and change any other default value as you see fit.

No comments:

Blog Archive