zdia / gorilla

Password Gorilla manages passwords
420 stars 61 forks source link

Tcl 8.5 or 8.6 #124

Open jpffitch opened 10 years ago

jpffitch commented 10 years ago

My Linux distro now delivers wish8.6 etc which caused gorilla to fail. For the momemt I have installed a symbolic link from wish8.5 to wish8.6 but is this safe?

ajraymond commented 10 years ago

Hi John,

Which distro are you using?

jpffitch commented 10 years ago

Apologies -- I meant to add OpenSuSE13.1

rich123 commented 10 years ago

When you say "fail" do you mean "fail to start"?

If so, and if you are running the source, that is because the current source is looking for 8.5. Editing the third line of gorilla.tcl to change "tclsh8.5" to "tclsh8.6" or "tclsh" will let it start up under 8.6.

I just discovered this over the past weekend when I upgraded one of my machines to Slackware 14.1 and got Tcl 8.6 in the process. Just have not gotten to pushing a commit into github yet to fix it.

I also encountered one additional little weirdness under 8.6 on Slackware 14.1. When it auto-locked and then I unlocked it, the app would appear to "disappear". The fix that has worked (so far) for me on Slack14.1 was to remove the "wm withdraw ." that is the 5th to the last line in the gorilla::LockDatabase proc.

The relevant code area looks like this:

    set ::gorilla::isLocked 0
    wm withdraw .
    wm deiconify .
    raise .
    ArrangeIdleTimeout
    return GORILLA_OK
}
# ----------------------------------------------------------------------
proc gorilla::LockDirtyMessage {} {

If this issue hits you as well under 8.6, then try deleting the line that says "wm withdraw ." and see if it makes it go away.

jpffitch commented 10 years ago

My code in gorilla.tcl refers to tcl8.4 which I hae just changed to 8.6 Perhaps my version is too old (version 1.42)

zdia commented 10 years ago

Look here for the latest revision:

http://www.zdia.de/downloads/gorilla/ http://gorilla.dp100.com/downloads/

rich123 commented 10 years ago

1.42 is a very old version. That is, I think, the last revision released by Password Gorilla's original author, Frank Pilhofer.

The current released version is 1.5.3.7 and there have been quite a lot of changes between 1.42 and 1.5.3.7. You may want to test 1.5.3.7 and see if you like it better than 1.42.

jpffitch commented 10 years ago

Just a simple question: is the database format still the same? That is can I continue with the same file or retype or what?

zdia commented 10 years ago

Just a simple question: is the database format still the same?

Yes