Re: Openbox Theme Editor

I got around to looking at this again. I manually set self.preview_themerc_dir. First I set it to a directory that had subdirectories. It ran fine. Then I set it to a directory that had no subdirectory and it threw the same error. The problem seems to be that the directory is empty.

I don't have any familiarity with python at all, but what does os.listdir() return when it finds no subdirectories? I tried to look it up, but I didn't see that condition listed anywhere. If I knew I think that it would be easy for me to simply add a check for it, so it didn't error out the program, even though I don't know python (I really need to learn. it's kind of popular).

Am I the only one who thinks some of the app names are amusing? Conkywonky. Terminator. Gets me every time.

Re: Openbox Theme Editor

try changing that section to:
        if os.listdir(self.preview_themerc_dir):
            for item in os.listdir(self.preview_themerc_dir):
              if item[-4:] == '.xbm':
                shutil.copyfile(self.preview_themerc_dir+'/'+item,dpath+'/'+item)
now it checks if the directory is empty first.

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: Openbox Theme Editor

now I get this error:

File "./obtheme", line 2211, in save_theme
    if os.listdir(self.preview_themerc_dir):
OSError: [Errno 22] Invalid argument: '/home/iteria/.themes/obtheme/openbox-3'

I will say this. when obtheme is running I can't see the folder "openbox-3", but if I try to create the folder, the file manager lets me know that it can't because the directory is already there. Despite that, if I try to go to "/home/iteria/.themes/obtheme/openbox-3" directly, the file manager says that it doesn't exist. Not that it this strangeness only happens when obtheme running, I can see and access everything when it's not.

Am I the only one who thinks some of the app names are amusing? Conkywonky. Terminator. Gets me every time.

Re: Openbox Theme Editor

I'm stumped on this one... I looked into it some more and it's not saying that the directory doesn't exist, it would work if it didn't exist. It's saying that it's not a valid path, from looking around it tends to happen if there are unicode characters in the path and stuff like that. As far as I can tell though the path looks fine. Maybe someone that knows a little more can step in.

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: Openbox Theme Editor

Is anyone having the same problem with it? can someone open the app through the commandline then save and see if you get the error too? It might be something I'm doing or something with my configuration.

Am I the only one who thinks some of the app names are amusing? Conkywonky. Terminator. Gets me every time.