Results 1 to 4 of 4

Thread: gThumb 2.13 catalog location?

  1. #1
    Join Date
    Nov 2010
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    gThumb 2.13 catalog location?

    I've been used to the catalogs being stored in ~/.gnome2/gthumb/collections. Using feh and a self-made script, this allowed me to view slideshows by simply clicking an icon on the panel and selecting a list. I was very happy with this.

    Now, I cannot seem to find the catalogs files in gThumb 2.13. Are they all in one file somewhere?

  2. #2
    Join Date
    Mar 2007
    Beans
    24

    Re: gThumb 2.13 catalog location?

    ~/.local/share/gthumb/catalogs/

  3. #3
    Join Date
    Nov 2010
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: gThumb 2.13 catalog location?

    Thanks a lot. Now I can get to work converting all the old catalogs and updating my script.

  4. #4
    Join Date
    Nov 2010
    Beans
    44
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: gThumb 2.13 catalog location?

    For anyone interested, here's a python script I made for converting old gThumb catalogs to the new format (and the new location):

    I honestly don't even know if this was necessary, but I didn't find any other way since I did a fresh install of Ubuntu and wanted the old catalogs.

    The script just needs you username, and then it should do the trick! However, I would make sure that there's no catalogs in the new system that could risk becoming overwritten. I don't take responsibility for any damage done.

    Code:
    # loop through all .gqv files in the folder ~/.gnome2/gthumb/catalogs
    # and create the library folders and .catalog files in ~/.local/share/gthumb/catalogs
    
    import os, glob
    
    username="YOUR USERNAME"
    OLD = "/home/"+username+"/.gnome2/gthumb/collections/"
    NEW = "/home/"+username"/.local/share/gthumb/catalogs/"
    
    def ensure_dir(f):
        d = os.path.dirname(f)
        if not os.path.exists(d):
            os.makedirs(d)
    
    
    dirnam = ""
    
    def scandirs(path):
        global dirnam
        for currentFile in glob.glob( os.path.join(path, '*') ):
        fname = os.path.basename(currentFile)
            if os.path.isdir(currentFile):
            dirnam = os.path.basename(currentFile)
            NEWfolder = NEW + dirnam + "/"
            ensure_dir(NEWfolder)
        
                scandirs(currentFile)
        elif fname[-4:] == ".gqv":
            fin = open(currentFile, 'r')
            fout = open(NEW + dirnam + "/" + fname[0:-4] + ".catalog", 'w')
    
                fout.write('<?xml version="1.0" encoding="UTF-8"?>\n')
                fout.write('<catalog version="1.0">\n')
                fout.write('  <files>\n')
                for line in fin:
                lnum+=1
                if lnum>1:
                    fout.write('    <file uri=')
                    fout.write(line.strip("\n"))
                fout.write('/>\n')
            fout.write('  </files>\n')
            fout.write('</catalog>')
    
            fin.close()
            fout.close()
    scandirs(OLD)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •