You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugConfirmed bugs or reports that are very likely to be bugselectronIssues related to our use of Electron that may need updates to Electron or upstream fixespriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
I use a second screen with my laptop, in which I display the GitHub desktop window. The problem is when I disconnect the second screen, the window seems to be again on that second screen, as we can guess with the Windows animations.
Here is the animation :
Version
GitHub Desktop version: 0.6.2, but the problem was also here in the previous version, 0.6.1
OS version: Windows 10.0.15063
Steps to Reproduce
Connect a second screen to your laptop
Move GitHub desktop window to that second screen
Disconnect the second screen
Expected behaviour: The window should be displayed in your laptop screen
Actual behaviour: The window seems to be in that inexistant second screen
Reproduces how often: Always
Hope this might be useful, this is my first contribution !
Reacted by Jesper Sommer, Adam Cook, Rafael DeJesus, Gavin Rozzi, 量子Bug, trevrobwhite, Rusty, Danielle Alexander, Mark Gabriel, Shawn Brooker and 28 more
Any thoughts on this ? I'll just add that the issue is independent of screens orientation (not only vertically as I initally wrote).
Edit: You have to connect your laptop to the exact same screen to get the window back. This is really annoying, because I can't connect to that screen at the moment, so I am unable to use GitHub Desktop for now. I tried reinstalling it, but it does not solve the problem.
@Raul6469 I can't reproduce this at the moment because I'm travelling (and they look at you funny when you try and take an external monitor on a plane), but maybe @iAmWillShepherd is able to reproduce it on his Windows machine.
My gut feeling is that we should be able to get events when the screens are added/removed, and maybe we can move the app to a better location.
Thanks for the answer @shiftkey ! I was just about to close this issue because I found a solution to my problem here with some keyboard tricks. It seems that it can occur for other Windows programs as well, so I don't really think that the problem is with desktop...
Reacted by Dmitrii, 量子Bug, Colin Millar, saneesh, Ashwin Kumar, Gary Sheppard, Ramanth, charles-ascentic, kabir pokharel, rssrinivasamurthy-diveplane and 1 more
I just had to deal with this same issue myself. I had GitHub installed on my mass storage HDD. I had to reinstall windows because it was simpler when I got an M.2 drive to use as my main boot drive. Launching from the install save on the HDD brought it up in such a way that it did not display on any screen. I tried the tried and true Shift+Right click to bring up system menu for icon to select move. To my surprise and horror this did bumpkiss...
Thankfully I found this ticket and @Raul6469 's solution to his same problem. This allowed me to bring it back.
A similar report to this around restoring the app: #2853
On a Windows multimonitor setup with the primary monitor being a High-DPI monitor (3000x2000 pixels - DPI-Font-Size set to 200%) and the secondary monitor being an ordinary 27" monitor (DPI-Font-Size set to 100%), when re-starting GitHub Desktop it tries to recreate its screen position somewhere out of the overall screen estate spanned by the two monitors.
I am experiencing the same issue, even when restarting and reinstalling the program it is still opening on the second screen. I have seen this also with other Electron applications. My solution was Ctrl-Shift-right-click on the application icon in the taskbar and then click maximize. This will force the screen to open on the main screen and then the problem is solved.
But for Github Desktop this seems disabled, maybe a solution is enabling this function so the there is a way to maximize the window?
edit: Just found out that you can maximize a program from the task manager, like this. Maybe that is a workaround for people experiencing the same.
Reacted by İsmail KILIÇ, 苏昭鸣, Bramantyo Adhilaksono, prewriter, Dimitri Cabaud, Simon Date, Silvio Affolter, Madhusoodan Pataki, Charles Morton, Vineeth Pothulapati and 7 more
I am experiencing the same issue. I would like to add that using the keyboard shortcuts WIN+Left, WIN+Right, WIN+Up or Win+Down was not working when the program was on the disconnected monitor.
I also was able to get the program to the correct screen with the help of the task manager and then dragging the title bar when the window was maximized
I've also been able to reproduce the issue on my Windows 10 environment. The only solution was to delete the file %APPDATA%\GitHub Desktop\window-state.json, per the discussion over here: #2893
Reacted by Ryan Bonomo, micstr, Andrew Donahoe, Josh Dickerson, Alex, Bob Grijpstra, Stephen Liong (Fucata), doclane, walwyn11, Daron Yondem and 7 more
Reacted by Ryan Bonomo and Ruihan Wang
Reacted by Ryan Bonomo
Reacted by Ryan Bonomo, Josh Dickerson, EPDISI, Michael Keck, Animesh Kumar Naskar and Torben
I've also been able to reproduce the issue on my Windows 10 environment. The only solution was to delete the file %APPDATA%\GitHub Desktop\window-state.json, per the discussion over here: #2893
above was the only fix that worked for me! Thank you!
It's an old issue but maybe it can be useful to somebody, if you check the logs it's some authentication fail (at least in my case)
to open it you can go to AppData/Roaming/github Desktop/
Rename the Cache folder to Old_Cache or just remove it this will bring you back the dekstop
This won't solve the authenticaton, to solve this change your ssh link to the https link
You can retrieve lost windows by doing the following:
Activate the app by clicking the Taskbar icon
Hit Alt+Space which will show the Window menu
Hit M, or click the Move menu item
Tap one of your cursor keys which will lock the window to your mouse cursor
You can them move you mouse cursor and the window will come along with it
Drop it where you please, with a click of the mouse
I need this for a variety of apps recently where their windows like to vanish outside of the bounds of my displays - Slack desktop app, Chrome dev tools windows...
bugConfirmed bugs or reports that are very likely to be bugselectronIssues related to our use of Electron that may need updates to Electron or upstream fixespriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
Activity
Raul6469 commentedon Jul 30, 2017
Any thoughts on this ? I'll just add that the issue is independent of screens orientation (not only vertically as I initally wrote).
Edit: You have to connect your laptop to the exact same screen to get the window back. This is really annoying, because I can't connect to that screen at the moment, so I am unable to use GitHub Desktop for now. I tried reinstalling it, but it does not solve the problem.
shiftkey commentedon Jul 31, 2017
@Raul6469 I can't reproduce this at the moment because I'm travelling (and they look at you funny when you try and take an external monitor on a plane), but maybe @iAmWillShepherd is able to reproduce it on his Windows machine.
My gut feeling is that we should be able to get events when the screens are added/removed, and maybe we can move the app to a better location.
Raul6469 commentedon Jul 31, 2017
Thanks for the answer @shiftkey ! I was just about to close this issue because I found a solution to my problem here with some keyboard tricks. It seems that it can occur for other Windows programs as well, so I don't really think that the problem is with desktop...
iAmWillShepherd commentedon Aug 2, 2017
@shiftkey, unfortunately, I can't reproduce because I'm working on my laptop. Haven't actually unpacked everything since moving -_-.
lownignitus commentedon Aug 17, 2017
I just had to deal with this same issue myself. I had GitHub installed on my mass storage HDD. I had to reinstall windows because it was simpler when I got an M.2 drive to use as my main boot drive. Launching from the install save on the HDD brought it up in such a way that it did not display on any screen. I tried the tried and true Shift+Right click to bring up system menu for icon to select move. To my surprise and horror this did bumpkiss...
Thankfully I found this ticket and @Raul6469 's solution to his same problem. This allowed me to bring it back.
shiftkey commentedon Sep 26, 2017
A similar report to this around restoring the app: #2853
leonrenkema commentedon Sep 30, 2017
I am experiencing the same issue, even when restarting and reinstalling the program it is still opening on the second screen. I have seen this also with other Electron applications. My solution was Ctrl-Shift-right-click on the application icon in the taskbar and then click maximize. This will force the screen to open on the main screen and then the problem is solved.
But for Github Desktop this seems disabled, maybe a solution is enabling this function so the there is a way to maximize the window?
edit: Just found out that you can maximize a program from the task manager, like this. Maybe that is a workaround for people experiencing the same.

ostensene commentedon Oct 18, 2017
Hi
I am experiencing the same issue. I would like to add that using the keyboard shortcuts WIN+Left, WIN+Right, WIN+Up or Win+Down was not working when the program was on the disconnected monitor.
I also was able to get the program to the correct screen with the help of the task manager and then dragging the title bar when the window was maximized
joshlangner commentedon Nov 9, 2017
I've also been able to reproduce the issue on my Windows 10 environment. The only solution was to delete the file
%APPDATA%\GitHub Desktop\window-state.json, per the discussion over here: #2893shiftkey commentedon Nov 23, 2017
A bunch of extra details was provided in #3409
rcmaehl commentedon Nov 24, 2017
I'm also experiencing this issue with multiple monitors (3). Work around I'm using is to run it Maximized.
44 remaining items
rschuetzler commentedon Oct 15, 2018
My guess is that this is an issue with https://github.com/mawie81/electron-window-state.
eliasvanderlinden commentedon Oct 16, 2018
use this fix: it's by far the fastest for windows 10.
#2107 (comment)
EPDISI commentedon Nov 5, 2018
above was the only fix that worked for me! Thank you!
gurkanakcakaya commentedon Dec 26, 2018
It's an old issue but maybe it can be useful to somebody, if you check the logs it's some authentication fail (at least in my case)
to open it you can go to AppData/Roaming/github Desktop/
Rename the Cache folder to Old_Cache or just remove it this will bring you back the dekstop
This won't solve the authenticaton, to solve this change your ssh link to the https link
Croydon commentedon Jan 22, 2019
I'm using GitHub Desktop with two displays for a long time now, but I run today for the first time into this issue. #2107 (comment) fixed it for me
irfan-bhat commentedon Feb 6, 2019
Here is the Fix
#3342 (comment)
alexdobsom commentedon Mar 22, 2019
there is a workaround by switching to tablet mode

vaibhavhrt commentedon Apr 23, 2019
Had this issue on my laptop(no secondary screen) with a detachable screen. Deleting
%APPDATA%\Roaming\GitHubDesktop\window-state.jsonfixed it.mswezey23 commentedon Apr 24, 2019
Almost 2 years and still hasn't been properly fixed 😏
goodlux commentedon Nov 19, 2019
I'm having this problem on OS X Catalina. Slack is open, can't find it anywhere! Can't restart it!
tierninho commentedon Nov 19, 2019
@goodlux Please fill a new issue and provide more details.
mswezey23 commentedon Nov 19, 2019
The topic in this thread is for GitHub Desktop, not Slack. :)
MaslinoJ commentedon Jan 24, 2020
I had the same issue .. jumped up and down with no good results . . until i tried some thing on task manager,
Jonas-Carvalho commentedon Jan 27, 2020
Worked smoothly! Thx!