Jump to content

Multiple emby trays


Go to solution Solved by miniz98,

Recommended Posts

Posted

Hello. I'm getting multiple emby trays like 5 of them. I made emby a service and removed all startups. What is also causing this?

Posted

Hi there, can you try rebooting your machine and see if it happens again?

Posted

I just did that and deleted readded the service and double checked everything. I'll let you know. Thanks. 

  • Thanks 1
Posted

Just checked and was showing 2 emby tray icons again. 

Posted

so i ran this bat file to clear all task bar icons in overflow and jt got rid of emby tray icons. ill keep you posted.

 

:: Created by: Shawn Brink
:: Created on: June 29, 2021
:: Tutorial: https://www.elevenforum.com/t/reset-taskbar-corner-notification-icons-in-windows-11.247/


@echo off

set regPath=HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
set regKey1=IconStreams
set regKey2=PastIconsStream


echo.
echo The explorer process must be temporarily killed before deleting your taskbar corner overflow notification icons cache. 
echo.
echo Please SAVE ALL OPEN WORK before continuing.
echo.
pause


echo.
taskkill /IM explorer.exe /F
echo.
FOR /F "tokens=*" %%a in ('Reg Query "%regpath%" /v %regkey1% ^| find /i "%regkey1%"') do goto IconStreams
echo Registry key "IconStreams" already deleted.
echo.

:verify-PastIconsStream
FOR /F "tokens=*" %%a in ('Reg Query "%regpath%" /v %regkey2% ^| find /i "%regkey2%"') do goto PastIconsStream
echo Registry key "PastIconsStream" already deleted.
echo.
goto restart

:IconStreams
reg delete "%regpath%" /f /v "%regkey1%"
goto verify-PastIconsStream

:PastIconsStream
reg delete "%regpath%" /f /v "%regkey2%"


:restart
echo.
echo.
echo You will need to restart the PC to finish resetting your taskbar corner overflow notification icons.
echo.
CHOICE /C:YN /M "Do you want to restart the PC now?"
IF ERRORLEVEL 2 goto no
IF ERRORLEVEL 1 goto yes


:no
echo.
echo.
echo Restarting explorer.... 
echo.
echo Please remember to restart the PC later to finish resetting your taskbar corner overflow notification icons.
echo.
start explorer.exe
pause
exit /B

:yes
shutdown /r /f /t 00

Posted (edited)

I've seen this too with Emby running as a service.  Tried to identify if there was something I was doing that caused the extra tray icons to start up, but it hasn't happened in a while now so nothing conclusive.  One warning though is that the process I used to manually close one or more of those instances also seemed to stop the Emby service.   Unfortunately, Don't remember what I did, so once again not much concrete value here...

I would however suggest verifying that Emby is no longer auto-starting when you login to Windows.  You can check this in Task Manager.

Edited by richt
Posted

Most likely you either did not setup the service according to our instructions:

Or you have something launching the emby server application after the service is already running, in which case you need to find that and prevent that.

 

Posted

So it happened again. I followed the service exact. I had 2 tray icons. I just renamed embytray.exe to old so hopefully it won't show. It's not 2 servers running just multiple tray icons. 

Posted
14 hours ago, miniz98 said:

It's not 2 servers running just multiple tray icons

Right but attempting to start a second copy of the server could manifest as multiple tray icons.  That really is the most likely cause of this.

Posted

Well no more emby trays and only one server is showing so I guess it worked getting rid of the embytray.exe. So the question is why does it want to load multiple emby trays?

Posted
1 hour ago, miniz98 said:

So the question is why does it want to load multiple emby trays?

It doesn't. We think you have something launching the emby server application when it's already been started as a service.

Posted

Why only one emby server showing then. It's weird. Never seen this. 

Posted
10 hours ago, miniz98 said:

Why only one emby server showing then. It's weird. Never seen this. 

Because the server would shut itself down or not actually start in that case but it may not be able to communicate that to the tray application.

  • Solution
Posted

I figured it out. So let me explain the setup. I have a server windows machine and use remote desktop to access it. What was happening is when the server restarted it wouldn't login automatically because it's password protected. So when I would remote in it would act like the machine signing in multiple times adding emby trays because it wasn't signed in locally. Hope this helps someone else. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...