Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Not showing up in the tray when minimized. #1695

Closed
2 tasks done
Xelbayria opened this issue Jan 10, 2024 · 7 comments
Closed
2 tasks done

[Bug] Not showing up in the tray when minimized. #1695

Xelbayria opened this issue Jan 10, 2024 · 7 comments
Labels

Comments

@Xelbayria
Copy link

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App version

3.7.7

Windows version

10-2H22

Steps to reproduce

  1. Just run the portable executable of Simplewall
  2. wait for it to finish loading and fully running.
  3. Check your tray to see the icon:
    Simpewall-issue

Expected behavior

I expected the icon of Simplewall to show up in the tray.

Actual behavior

The icon of Simplewall doesn't show up in Tray (I've confirmed Simplewall is fully running). The issue also exists in v3.7.6. I had to downgrade to v3.7.5 where it's working.

the version of Simplewall is portable from simplewall-3.7.7-bin.zip. I cleaned out the profile and setting data to see if that fixed the issue and nope!

Logs

n/a

@Xelbayria Xelbayria added the bug label Jan 10, 2024
@henrypp
Copy link
Owner

henrypp commented Jan 10, 2024

what shitted OS u using which did not display tray?

i tested all versions on vanilla Windows builds and never tray icon did not displayed.

try reset tray icon cache by run this and recheck:

reset_explorer_tray.zip

@Xelbayria
Copy link
Author

what shitted OS u using which did not display tray?

i tested all versions on vanilla Windows builds and never tray icon did not displayed.

try reset tray icon cache by run this and recheck:

reset_explorer_tray.zip

reset_explorer_tray fixed it. what was the cause? if you don't mind explain in more detail?

@henrypp
Copy link
Owner

henrypp commented Jan 11, 2024

idk

@Xelbayria
Copy link
Author

dang! no worries.

@henrypp henrypp mentioned this issue Jan 24, 2024
2 tasks
@tsmr77
Copy link

tsmr77 commented Jan 24, 2024

Thanks for the Fix Mister.

@henrypp henrypp assigned henrypp and unassigned henrypp Feb 5, 2024
@henrypp henrypp pinned this issue Feb 5, 2024
@0lm
Copy link

0lm commented Feb 14, 2024

what shitted OS u using which did not display tray?
i tested all versions on vanilla Windows builds and never tray icon did not displayed.
try reset tray icon cache by run this and recheck:
reset_explorer_tray.zip

reset_explorer_tray fixed it. what was the cause? if you don't mind explain in more detail?

The cause is Windows.

Windows stores Icon information in the Registry. But if you change the path of an existing icon, then it will get confused, for whatever reason. And changing pathes often can happen with portable versions of a software.

Example:

You are using Simplewall 3.7.7 portable and the folder SW is in, is called, lets say, "sw377"

Now you update it and it turns to v3.7.8. And if you rename the folder name, i.e. "sw378", then Windows will stop displaying the icon in the taskbar menu, because the icon is still the same, but the path changed. For some reason, it doesn't refresh its icon memory. So, in other words, Windows burned it into its memory, that the icon for simplewall is connected to the folder "sw377". But the moment you change names and stuff, the Icon won't be displayed anymore unless you delete some registry files. - (at least, that's how this "icon missing" issue happened to me)

Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

That's the Registry path where the Icon information are stored. By manually deleting "IconStreams" and "PastIconsStream" and then restarting explorer.exe you can solve the problem, too. I just checked the "reset_explorer_tray.bat" - it is doing the same what described.

@codeXXjs
Copy link

what shitted OS u using which did not display tray?
i tested all versions on vanilla Windows builds and never tray icon did not displayed.
try reset tray icon cache by run this and recheck:
reset_explorer_tray.zip

reset_explorer_tray fixed it. what was the cause? if you don't mind explain in more detail?

The cause is Windows.

Windows stores Icon information in the Registry. But if you change the path of an existing icon, then it will get confused, for whatever reason. And changing pathes often can happen with portable versions of a software.

Example:

You are using Simplewall 3.7.7 portable and the folder SW is in, is called, lets say, "sw377"

Now you update it and it turns to v3.7.8. And if you rename the folder name, i.e. "sw378", then Windows will stop displaying the icon in the taskbar menu, because the icon is still the same, but the path changed. For some reason, it doesn't refresh its icon memory. So, in other words, Windows burned it into its memory, that the icon for simplewall is connected to the folder "sw377". But the moment you change names and stuff, the Icon won't be displayed anymore unless you delete some registry files. - (at least, that's how this "icon missing" issue happened to me)

Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

That's the Registry path where the Icon information are stored. By manually deleting "IconStreams" and "PastIconsStream" and then restarting explorer.exe you can solve the problem, too. I just checked the "reset_explorer_tray.bat" - it is doing the same what described.

Thanks for the elaborate respond. I also faced the same issue and now I know why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants