#14 Fails to Open when Previous Path no longer exists

v1.0_(example)
open
nobody
None
5
2014-07-11
2014-05-21
Sadarax
No

Downloaded and installed the latest archive marked for 2014-03-25. How to reproduce:

Open the program. In the graphical menu of the program, if you select the option "Remember last directory". Close the program. If that path changes (such as the directory is deleted), GPRename will no load next time. It gives no message to the user (except on the STDOUT of the console).

My suggestion is have it default back to a user's /home/USERNAME directory when it cannot find the last directory.

Discussion

  • Zurd
    Zurd
    2014-05-21

    Nice find! Should be easy to fix, if you have time make a patch file and I'll release a new version with it.

     
  • Sadarax
    Sadarax
    2014-05-21

    I will give it a try. One question though: I was poking around in the source code just now. Where is the actual perl source code in the trunk? I can find the icons and man pages and makefiles, etc....

     
  • Sadarax
    Sadarax
    2014-05-21

    Oh duh. Of course that would be it. I didn't see the .pl extension and ignored it. Silly me. Okay, I'll try my hand at making a solution and patch tomorrow.

     
  • Scott Jacobs
    Scott Jacobs
    2014-07-02

    Hi. Just downloaded and installed the newest (3/25) version.
    Cannot load (no message, except in terminal - "Path doesn't exist!"
    Perhaps I can look somewhere to see what path it wants, so i can change it...? (Perhaps the link in "zurd"'s post... - cannot look now...)


    uname -a
    Linux scott-AsusM2N68-AM-Plus 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:47:59 UTC 2014 i686 athlon i686 GNU/Linux
    lsb_release -dsc
    Ubuntu 14.04 LTS
    trusty
    echo $DESKTOP_SESSION
    Lubuntu


    Hmm...
    That's interesting - i tried to bring up the version, and got this:
    gprename --version
    unhandled exception in callback:
    Failed to open file '/usr/local/share/pixmaps/gprename/gprename.png': No such file or directory at /usr/local/bin/gprename line 1444.
    ignoring at /usr/local/bin/gprename line 548.
    unhandled exception in callback:
    Failed to open file '/usr/local/share/pixmaps/gprename/gprename.png': No such file or directory at /usr/local/bin/gprename line 1444.
    ignoring at /usr/local/bin/gprename line 548.
    Window came up this time, but selecting "about" from menu yielded nothing, repeatedly...

     
  • Scott Jacobs
    Scott Jacobs
    2014-07-03

    Somehow, when I invoked it with the terminal, that changed something, for now it comes up when I use the menu.

    The "About" option does not do anything, however.
    When I invoice GPRename from the terminal, and then try "About" from the menu, the following is printed in the terminal:
    "
    unhandled exception in callback:
    Failed to open file '/usr/local/share/pixmaps/gprename/gprename.png': No such file or directory at /usr/local/bin/gprename line 1444.
    *** ignoring at /usr/local/bin/gprename line 548.
    "
    I had seen this output before (see prev. message), but had not associated it with the attempt to call "About".

    In looking at my file system, I see that there is no directory /usr/local/share/pixmaps.

     
  • Zurd
    Zurd
    2014-07-11

    Scott Jacobs: You should re-install gprename

    For anyone with the "Fails to open" problem, either edit or remove:
    ~/.config/gprename/gprename