I installed PasswordSafeSWT 0.8 beta 3 on Ubuntu 9.10 UNR. When PasswordSafe is iconized to the system tray it fails to restore the window. WHen I select "Restore" there is a flash and then nothing. I have reverted to 0.7 until this is fixed. Thanks.
Hi doug,
this should be fixed in v0.8 beta4, please try it out.
Cheers,
Roxon
I tried 0.8 beta4 on my Karmic UNR machine. I get the initial safe combination window and then it disappears altogether. From ps in a terminal I see it is running but with no window. Unfortunately there seems to be no simple way now to switch from UNR to standard desktop mode in Ubuntu 9.10. I'll try it on another machine with the normal Ubuntu 9.10 desktop and see how that works.
Now I have tried 0.8 beta4 on Ubuntu 9.10 (Karmic) with the regular Gnome desktop and it works fine. But then 0.8 beta3 also works fine there.
Hi Doug,
sorry, I wasn't aware UNR is a special edition.
Beta 3 had some problems with restore from tray icon.
Could you send me a log from jpwsafe?
(start it from a shell).
Including maybe your java version etc.
Does it work without the tray icon (disable in preferences and restart jpwsafe)?
Do you know if there is VM version of UNR?
That would help for replaying and debugging.
Cheers,
Roxon
log file from pwsafe.sh -d
On Ubuntu 9.10 UNR again, I started it as
pwsafe.sh -d
from a shell. There was nothing to stdout but the attached file pws_start_doug.log was
generated in /tmp.
Here is my environment:
$ printenv
ORBIT_SOCKETDIR=/tmp/orbit-doug
SSH_AGENT_PID=1644
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=672adac7bedadef70f14217d4b388fac-1266390355.987981-1815923644
GTK_RC_FILES=/etc/gtk/gtkrc:/home/doug/.gtkrc-1.2-gnome2
WINDOWID=73400323
GTK_MODULES=canberra-gtk-module
USER=doug
LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.bz2=01;31:.bz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.axa=00;36:.oga=00;36:.spx=00;36:*.xspf=00;36:
SSH_AUTH_SOCK=/tmp/keyring-gg0Qqg/socket.ssh
GNOME_KEYRING_SOCKET=/tmp/keyring-gg0Qqg/socket
SESSION_MANAGER=local/deeepc:@/tmp/.ICE-unix/1602,unix/deeepc:/tmp/.ICE-unix/1602
USERNAME=doug
DESKTOP_SESSION=gnome
PATH=/home/doug/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/doug
GDM_KEYBOARD_LAYOUT=us
LANG=en_US.UTF-8
GNOME_KEYRING_PID=1579
GDM_LANG=en_US.UTF-8
GDMSESSION=gnome
SPEECHD_PORT=7560
SHLVL=1
HOME=/home/doug
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=doug
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yPYrjWdJjd,guid=cc9b64e39530542f604b89794b7b9555
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
COLORTERM=gnome-terminal
XAUTHORITY=/var/run/gdm/auth-for-doug-g1eGDI/database
OLDPWD=/usr/local/src
_=/usr/bin/printenv
I just added a bug report, but I think it is the same as this below.
I connected the problem to a windows maximizer, "Maximus". It provides a hint to maximize (and undecorate) all windows. Seeing the problem described above in 0.8-beta4
I have been using 0.8 beta4 on Ubuntu 10.04 (lucid) on a netbook with the Gnome desktop and that works fine. When I use the Netbook Remix dektop
the PasswordsafeSWT icon shows in the top panel but when I click it and select "Restore" to display the full window it flashes open and then usually (but not always) disappears.
Hi Roxon,
I've had a bit of a look at this and I think that I've found a fix (works on Debian testing amd64); in SysTray.java, lines 113 - 114, swap the lines around, i.e. they should be changed to this order:
mainShell.setMinimized(false);
mainShell.setVisible(true);
and it seems to restore properly. I haven't tested it on any other platforms.
This code snippet is also used above, i.e. lines 98-99 and it seems to restore from a double click with these swapped too.
Maybe it's a bug/idiosyncrasy in the linux SWT libraries? Can someone else do some testing on other platforms to see if it works?
Thanks,
Tim
Oops - wasn't logged in... :-S
Tim
Workaround tip from sourceforge user janeaustin:
After the installation on a netbook under Ubuntu NetBook Remix (UNR) I encountered a major issue: the application is pretty much unusable on UNR with UNR's default settings. After entering the correct password into Java Password Safe the main window stays minimized. You will observe that it's almost impossible to maximize the application window. After 5..10 mins trying again and again you might succeed but that's pretty much unpredictable. This strange behaviour results from an interference with the UNR component "Maximus". Here the workaround (developers might find a better solution): you have to add the PasswordSafeSWT into the list of exceptions. Follow these steps:
1. launch gconf-editor
2. Navigate to the key /apps/maximus/exclude_class
3. Add the window ID "SWT" to the list (Note: it's not "PasswordSafeSWT" you need the WM_CLASS here)
4. Exit from gconf-editor and you're done.
Timmydog - good work!
I hope someone can check out your fix. Without having a UNR hardware, I tried to reproduce this in a virtualbox UNR VM, but did not experience the problem.
It might stem from the fact I used the Sun JRE...?
Pushed the priority to 2, as I would really like to see this solved before 0.8 final.
I checked the fix of Timmydog and invested several hours of work, but could not fix this with java code changes.
I'll file a bug to SWT.
Otherwise, the only sensible way seems to be to disable the tray icon by default, Then it works for me (in a virtual machine).