"Show icon and notifications&quot...

Daniel
2012-02-11
2012-09-17
  • Daniel

    Daniel - 2012-02-11

    "Show icon and notifications" needs to be set on every new instance of
    DocFetcher 1.0.3

    What steps will reproduce the problem?

    1. Deselect "Always show all icons and notifications on the taskbar" in Windows "Notification Area Icons" settings
    2. Open DocFetcher
    3. Change DocFetcher behavior to "Show icon and notifications" in Windows "Notification Area Icons" settings
    4. Exit DocFetcher
    5. Open DocFetcher and the notification area icon settings need to be set again. Windows does not seem to recognize the new instance of DocFetcher as the same program that the settings were recently updated for.

    What is the expected output? What do you see instead?

    I expect a new instance of DocFetcher to show the icon in the taskbar, as
    opposed to being hidden.

    What version of the product are you using? On what operating system?

    DocFetcher 1.0.3

    Windows 7 64-bit (I am using the bat file to launch a 32-bit version of Java)

     
  • Daniel

    Daniel - 2012-02-11

    The problem does not only occur by exiting DocFetcher. If I launch DocFetcher,
    then minimize it to the tray and set the notification area settings to "Always
    show all icons and notifications on the taskbar", and then restore the window,
    and then minimize it to the tray again, it will be hidden.

     
  • Nam-Quang Tran

    Nam-Quang Tran - 2012-02-12

    Please give the newer beta versions of DocFetcher a try. The betas should run
    with 64-bit Java without problems, so the DocFetcher.bat won't be needed.
    Maybe that'll fix this issue.

     
  • Daniel

    Daniel - 2012-02-12

    I gave beta 4 a try a few days ago, and it did not fix the issue. I also tried
    using a newer version of the GUI library along with 1.0.3 and that did not
    work either.

    I believe that the issue might be related to Java, not with DocFetcher
    particularly. I can't find specific details on how the Windows notification
    area works.

     
  • Nam-Quang Tran

    Nam-Quang Tran - 2012-02-12

    Well, if it's a Java problem (and that's likely the case here), then I'm
    afraid there isn't much I can do about it.

     
  • Nam-Quang Tran

    Nam-Quang Tran - 2012-02-12

    Btw, beta 5 was released just an hour or so ago. beta 4 had a super-serious
    bug that made searching impossible.

     
  • Daniel

    Daniel - 2012-02-13

    I looked at an SWT example snippet at:

    http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.
    eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet143.java

    I did not have the problem with their code. Setting "Show icon and
    notifications" is retained for new instances of the program. At first I
    thought the problem might be caused when a TrayItem is not declared final.
    However, I tried changing this in their code and the notification area
    settings were still retained.

    I believe the problem occurs in DocFetcher because a new TrayItem is created
    every time the program is minimized. Here is a solution that fixes the problem
    in 1.0.3 by creating the TrayItem only once, and then toggling it using the
    setVisible method.

    http://www.dannyadam.com/share/DocFetcher.java

    In my brief testing, doing it this way makes the "Show icon and notifications"
    settings retained both for

    1) minimizing and restoring and then minimizing the same instance of
    DocLauncher

    2) closing DocLauncher completely and relaunching

     
  • Nam-Quang Tran

    Nam-Quang Tran - 2012-02-13

    Well, then I guess I could add this bugfix to the 1.1 beta source code when I
    have time. (The 1.0.3 source code is not maintained anymore, btw.)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks