Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.25k stars 433 forks source link

Shortcuts don't work when Heroic is running #1027

Closed Rafii2198 closed 2 years ago

Rafii2198 commented 2 years ago

Describe the bug

When the Heroic is running, using shortcuts generated with Heroic won't turn on the games, but instead will just bring Heroic window. this does not happen when using the shortcut while Heroic is not running - in this case everything will be normal, heroic will launch and with it the game. It happens to me and my friend who uses previous release (the one before GOG support).

Add logs

These are the logs when Heroic was running and I used the shortcut 2 times:

(21:48:24) INFO:    [Legendary]:       Location: C:\Users\Rafii2198\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\legendary.exe
(21:48:24) INFO:    [Gog]:             Location: C:\Users\Rafii2198\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\gogdl.exe
(21:48:28) INFO:    [Backend]:         
  Heroic Version: 2.2.1 Oden
  Legendary Version:  0.20.25 Our Benefactors
  OS: Microsoft Windows 10 Home KERNEL: 10.0.19043 ARCH: x64
  CPU: AMD Ryzen 5 1600X Six-Core Processor @3.6 
  RAM: Total: 34.3 GB Available: 21.9 GB
  GRAPHICS: GPU0: Radeon RX 580 Series VRAM: 8192MB DRIVER:  

(21:48:28) INFO:    [Gog]:             Getting data about the user
(21:48:28) WARNING: [Backend]:         Protocol already registered.
(21:48:29) INFO:    [Gog]:             Saved user data to config
(21:48:29) INFO:    [Frontend]:        Refreshing Library
(21:48:29) INFO:    [Gog]:             Getting GOG library
(21:48:30) INFO:    [Gog]:             Number of library pages: 1
(21:48:30) INFO:    [Gog]:             Saved games data
(21:48:30) INFO:    [Legendary]:       Refreshing library...
(21:48:30) INFO:    [Legendary]:       Refreshing Epic Games...
(21:48:30) INFO:    [Legendary]:       Refreshing Epic Games...
(21:48:31) INFO:    [Legendary]:       [cli] INFO: Logging in...
(21:48:31) INFO:    [Legendary]:       [Core] INFO: Trying to re-use existing login session...
(21:48:31) INFO:    [Legendary]:       [cli] INFO: Getting game list... (this may take a while)
(21:48:32) INFO:    [Legendary]:       Updating game list
(21:48:32) INFO:    [Legendary]:       Game List Updated
(21:48:34) INFO:    [Legendary]:       Checking for game updates
(21:48:34) INFO:    [Legendary]:       Found 1 game(s) to update
(21:48:34) INFO:    [Gog]:             Found 0 game(s) to update
(21:48:34) INFO:    [Backend]:         checking for heroic updates

These are the logs when Heroic was closed and I used the shortcut:

(21:51:59) INFO:    [Legendary]:       Location: C:\Users\Rafii2198\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\legendary.exe
(21:51:59) INFO:    [Gog]:             Location: C:\Users\Rafii2198\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\gogdl.exe
(21:52:04) INFO:    [Backend]:         
  Heroic Version: 2.2.1 Oden
  Legendary Version:  0.20.25 Our Benefactors
  OS: Microsoft Windows 10 Home KERNEL: 10.0.19043 ARCH: x64
  CPU: AMD Ryzen 5 1600X Six-Core Processor @3.6 
  RAM: Total: 34.3 GB Available: 22.1 GB
  GRAPHICS: GPU0: Radeon RX 580 Series VRAM: 8192MB DRIVER:  

(21:52:04) INFO:    [Gog]:             Getting data about the user
(21:52:04) WARNING: [Backend]:         Protocol already registered.
(21:52:04) INFO:    [ProtocolHandler]: received 'heroic://launch/Jackal'
(21:52:04) INFO:    [Gog]:             Saved user data to config
(21:52:05) INFO:    [Frontend]:        Refreshing Library
(21:52:05) INFO:    [Gog]:             Getting GOG library
(21:52:05) INFO:    [Gog]:             Number of library pages: 1
(21:52:05) INFO:    [Gog]:             Saved games data
(21:52:05) INFO:    [Legendary]:       Refreshing library...
(21:52:05) INFO:    [Legendary]:       Refreshing Epic Games...
(21:52:05) INFO:    [Legendary]:       Refreshing Epic Games...
(21:52:06) INFO:    [Legendary]:       [cli] INFO: Logging in...
(21:52:06) INFO:    [Legendary]:       [Core] INFO: Trying to re-use existing login session...
(21:52:07) INFO:    [Backend]:         launching Dauntless Jackal
(21:52:07) INFO:    [Legendary]:       [cli] INFO: Getting game list... (this may take a while)
(21:52:07) INFO:    [Legendary]:       Launch Command: C:\Users\Rafii2198\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\win32\legendary.exe launch Jackal    
(21:52:07) INFO:    [Legendary]:       Updating game list
(21:52:07) INFO:    [Legendary]:       Game List Updated
(21:52:09) INFO:    [Legendary]:       Checking for game updates
(21:52:09) INFO:    [Legendary]:       Found 1 game(s) to update
(21:52:09) INFO:    [Gog]:             Found 0 game(s) to update
(21:52:10) INFO:    [Backend]:         checking for heroic updates
(21:52:14) INFO:    [Backend]:         Log was written to C:\Users\Rafii2198/.config/heroic/GamesConfig/Jackal-lastPlay.log

Steps to reproduce

  1. When Heroic is opened, use a shortcut to a game (either in start menu or desktop)
  2. Heroic instead of launching the game will just show up

Expected behavior

When using a shortcut to the game when Heroic is open, it should launch the game instead of showing the Heroic window.

Screenshots

No response

System Information

Additional information

No response

imLinguin commented 2 years ago

1019 will fix this