Page 1 of 1

how to enable system tray control (in Windows)

Posted: Tue Oct 06, 2020 3:52 pm
by russell_heater
Hi

How do I cause the control icon to appear in my system tray, if FAH is already running before I log in?

After launching FAHclient manually for a few days, I was dismayed to see that the system tray icon fails to appear if I launch FAHclient via scheduled task on system start.

You might ask: "Why are you not running it as a service, if you want it to start on system start?"
To which I'd answer: Because I'm running it as a non-admin user, and multiple things are easier this way (or please tell me if otherwise).

------

BTW, here's the contents of the batch file my Scheduled Task runs:

Code: Select all

rem hack around Windows quirk
rem https://docs.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/scheduled-tasks-reference-incorrect-user-profile
timeout 60

set dir=%userprofile%\Desktop\FAH
rem just in case
mkdir "%dir%"
cd "%dir%"
"C:\Program Files (x86)\FAHClient\FAHClient.exe" --user=russell_heater --team=0 --gpu=true --smp=true
And here's the contents of the batch file I use to launch FAHControl:

Code: Select all

set dir=%userprofile%\Desktop\FAH
start "FAH" /d %dir% "C:\Program Files (x86)\FAHClient\FAHControl.exe"

Re: how to enable system tray control (in Windows)

Posted: Tue Oct 06, 2020 5:34 pm
by foldy
I start FAHclient from Windows Startup folder shell:startup after user login. Then tray icon is shown.

Re: how to enable system tray control (in Windows)

Posted: Wed Oct 07, 2020 6:10 am
by PantherX
Welcome to the F@H Forum russell_heater,

I assume that your using a passkey which is recommended for points and security reasons: https://foldingathome.org/support/faq/points/passkey/

BTW, when it comes to running the client as a service, it won't work since you're also using the GPU to fold. Running as a service only works if it is CPU only.

The next release of the client will be using a different set of folders to ensure that it can work with multiple user accounts without issues. There's no ETA for that.

Re: how to enable system tray control (in Windows)

Posted: Mon Oct 12, 2020 2:08 pm
by russell_heater
Ah, @pantherx, thanks for the info about next release. Gtk. @foldy , yes, starting on logon also worked for me, but I didn't want to have to enable auto-logon on boot, because I'm not the only user of this machine.

Re: how to enable system tray control (in Windows)

Posted: Thu Mar 18, 2021 9:48 am
by Zelphium
Just wanted to let people know for info. I just ran the Windows 10 Debloater script. I disabled just the telemetery/tasks, onedrive and cortana. I left the main bulk of the 'bloat' in place. However, now I don't get the system tray icon for FAH. It still seems to be running and I can get to the web interface.

So, if anyone can't get to the system tray icon and has run the debloater script, I would suggest that that is the/a cause.