mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.19k stars 106 forks source link

MacOS: Portable mode is not detected #869

Closed HVR88 closed 2 years ago

HVR88 commented 3 years ago

In MacOS 11, Pegasus fails to find any config files when set for portable mode - portable.txt next to the Pegasus app. This includes settings and other folders next to Pegasus or within a config folder as specified in the wiki.

Pegasus continues to look in ~/Preferences/Pegasus-fe and will also write its log in this location when it fails to find any config files.

System info

Pegasus Alpha 15-14 MacOS 11.5

Pegasus log

2021-07-27T16:38:14 [i] Pegasus alpha15-14-gc63493c4 (2021-07-15) 2021-07-27T16:38:14 [i] Running on macOS 11.5 (x86_64, cocoa) 2021-07-27T16:38:14 [i] Qt version 5.15.2 2021-07-27T16:38:14 [i] Program settings loaded (/Users/Bruno/Library/Preferences/pegasus-frontend/settings.txt) 2021-07-27T16:38:14 [i] Found locale ar 2021-07-27T16:38:14 [i] Found locale bs 2021-07-27T16:38:14 [i] Found locale de 2021-07-27T16:38:14 [i] Found locale en-GB 2021-07-27T16:38:14 [i] Found locale en 2021-07-27T16:38:14 [i] Found locale es 2021-07-27T16:38:14 [i] Found locale fr 2021-07-27T16:38:14 [i] Found locale hu 2021-07-27T16:38:14 [i] Found locale ko 2021-07-27T16:38:14 [i] Found locale nl 2021-07-27T16:38:14 [i] Found locale pt-BR 2021-07-27T16:38:14 [i] Found locale ru 2021-07-27T16:38:14 [i] Found locale zh-TW 2021-07-27T16:38:14 [i] Found locale zh 2021-07-27T16:38:14 [i] Locale set to en 2021-07-27T16:38:14 [i] Found theme Pegasus Grid at :/themes/pegasus-theme-grid/ 2021-07-27T16:38:14 [i] Theme set to Pegasus Grid (:/themes/pegasus-theme-grid/) 2021-07-27T16:38:14 [i] SDL version 2.0.14 2021-07-27T16:38:14 [i] Metafiles: No metadata files found 2021-07-27T16:38:14 [i] Metafiles: Finished searching in 0ms 2021-07-27T16:38:14 [i] Media: Finished searching in 0ms 2021-07-27T16:38:14 [i] Steam: Found installation at /Users/Bruno/Library/Application Support/Steam/ 2021-07-27T16:38:14 [w] Steam: Could not read /Users/Bruno/Library/Application Support/Steam/config/config.vdf, some games may be missing 2021-07-27T16:38:14 [i] Steam: 0 games found 2021-07-27T16:38:14 [i] Steam: Finished searching in 0ms 2021-07-27T16:38:14 [i] EmulationStation: No installation found 2021-07-27T16:38:14 [i] EmulationStation: Finished searching in 0ms 2021-07-27T16:38:14 [i] Logiqx: Finished searching in 0ms 2021-07-27T16:38:14 [i] Skraper Assets: 0 assets found 2021-07-27T16:38:14 [i] Skraper Assets: Finished searching in 0ms 2021-07-27T16:38:14 [i] Favorites: Finished searching in 0ms 2021-07-27T16:38:14 [i] Playtime: Finished searching in 0ms 2021-07-27T16:38:14 [w] The collection 'Steam' has no valid games, ignored 2021-07-27T16:38:14 [i] Game list post-processing took 0ms 2021-07-27T16:38:15 [i] 0 games found 2021-07-27T16:38:15 [w] qt.qpa.fonts: Populating font family aliases took 273 ms. Replace uses of missing font family "Courier New,courier" with one that exists to avoid this cost. 2021-07-27T16:38:20 [i] Closing Pegasus, goodbye!

mmatyas commented 2 years ago

Does this also happen if you start Pegasus with the --portable command line flag?

HVR88 commented 2 years ago

You can't use the command-line argument in MacOS to get the desired behavior as far as I can tell.

The binary for Pegasus is inside the bundle: Pegasus.app/Contents/MacOS/pegasus-fe

And specifying the command-line argument seems to cause Pegasus to look inside the bundle for the files, not the current folder where the bundle itself is stored.

mmatyas commented 2 years ago

Ah, that will be the reason then. I'll see if I can fix it real quick.

mmatyas commented 2 years ago

Ok, here's an experimental build: pegasus-fe_alpha15-19-g98c08777_macos-static.zip Does the portable.txt method work with this?

HVR88 commented 2 years ago

It appears to be working. I have ONLY tested portable at the moment, so I need more time to test to make sure it also still works with the other paths. :)

mmatyas commented 2 years ago

I'll close this then, until further issues.