Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
Added, Performance, Changed, Fixed, Security, Removed, Known limitations. The release notes on
GitHub are made from them (python3 tools/release.py notes X.Y.Z); CI checks the sections. -->

## Unreleased

### Fixed
- **Steam and Epic Games games now show up in "Add from installed games" on Windows.** PeriHub only looked for Steam in `Program Files (x86)\Steam`, ignored the Epic Games Launcher, and only found a game's program when it sat directly in the game's folder (not in `bin\x64` or an Unreal game's `Binaries\Win64`). It now finds Steam where Windows says it is installed (also when it is not in Program Files), reads the Epic Games Launcher's list of installed games, and looks a few folders deep, preferring the real game program over launchers, crash reporters and installers. Games started from a folder with a very long path are also recognised as the app in focus.

## 0.9.3 — 2026-11-17

A damaged `config.json` is no longer overwritten by the defaults: PeriHub keeps it and brings back the last good save. Device detection recovers on its own when HID access is not ready at start-up, errors are shown in plain words instead of being swallowed, and on Linux desktops without a system tray closing the window quits PeriHub instead of hiding it. Test reports now carry every request and answer in full, and the interface works better with screen readers.
Expand Down
3 changes: 2 additions & 1 deletion app/src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ pub fn profiles_get(app: AppHandle, state: State<'_, AppState>) -> ProfilesInfo
}
}

/// The games installed through Steam, Lutris and Heroic, for suggesting rules. Reads files only.
/// The games installed through Steam, the Epic Games Launcher, Lutris and Heroic, for suggesting rules.
/// Reads files only (and, on Windows, where Steam is installed from the registry).
#[tauri::command]
pub async fn games_installed() -> CmdResult<Vec<perihub_core::games::InstalledGame>> {
blocking(|| Ok(perihub_core::games::installed_games())).await
Expand Down
4 changes: 2 additions & 2 deletions app/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export interface ProfilesInfo {

export interface InstalledGame {
name: string;
/** "Steam", "Lutris" or "Heroic". */
/** "Steam", "Epic", "Lutris" or "Heroic". */
launcher: string;
/** Executable name on Windows, window class on Linux. */
app: string;
Expand Down Expand Up @@ -892,7 +892,7 @@ export const api = {
profiles: () => invoke<ProfilesInfo>("profiles_get"),
setProfiles: (profiles: AppProfiles) =>
invoke<void>("profiles_set", { profiles }),
/** Games installed through Steam, Lutris and Heroic (reads their files only). */
/** Games installed through Steam, the Epic Games Launcher, Lutris and Heroic (reads their files only). */
installedGames: () => invoke<InstalledGame[]>("games_installed"),
/** Runs the step a "setup" FocusSupport offers; resolves with what to tell the user. */
setupFocus: () => invoke<string>("profiles_setup_focus"),
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/AppProfiles.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
{#if !games}
<p class="loading">Looking for games…</p>
{:else if !games.length}
<p class="muted small">No games found. PeriHub looks at Steam, Lutris and Heroic.</p>
<p class="muted small">No games found. PeriHub looks at Steam, the Epic Games Launcher, Lutris and Heroic.</p>
{:else if !shownGames.length}
<p class="muted small">No game matches.</p>
{:else}
Expand Down
2 changes: 1 addition & 1 deletion crates/perihub-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ xkbcommon = { version = "0.9", default-features = false }
zbus = { version = "5.19", default-features = false, features = ["async-io", "blocking-api"] }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Threading", "Win32_UI_Input", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Registry", "Win32_System_Threading", "Win32_UI_Input", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
5 changes: 3 additions & 2 deletions crates/perihub-core/src/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ mod windows {
use std::thread;
use std::time::Duration;

use windows_sys::Win32::Foundation::{CloseHandle, MAX_PATH};
use windows_sys::Win32::Foundation::CloseHandle;
use windows_sys::Win32::System::Threading::{
OpenProcess, PROCESS_NAME_WIN32, PROCESS_QUERY_LIMITED_INFORMATION, QueryFullProcessImageNameW,
};
Expand All @@ -195,7 +195,8 @@ mod windows {
if process.is_null() {
return None;
}
let mut path = [0u16; MAX_PATH as usize];
// 32768 is the longest path Windows has: a game in a deep folder does not fit in MAX_PATH.
let mut path = vec![0u16; 32768];
let mut len = path.len() as u32;
let ok = QueryFullProcessImageNameW(process, PROCESS_NAME_WIN32, path.as_mut_ptr(), &mut len);
CloseHandle(process);
Expand Down
Loading
Loading