Repository navigation
Installation and Setup
RubyLock RPC supports Windows (x64) and Linux (x86_64) with prebuilt installers on GitHub Releases as well as running directly from a source checkout.
| Requirement | Details |
|---|---|
| Ruby |
Ruby 3.2+ (>= 3.2.0 in rubylock-rpc.gemspec, tested on Ruby 3.4 in CI). Zero external gems are required. |
| Discord | Local desktop client running (native Discord on Windows/Linux, Flatpak Discord, Snap Discord, or Vesktop). |
| Deadlock | Installed via Steam (App ID 1422450) and launched with -condebug enabled so game/citadel/console.log is written. |
The official Windows release ships as a self-contained installer (RubyLock-RPC-Setup-v1.3.0-win64.exe) compiled from packaging/windows/installer.c with an embedded RLPC resource payload.
- Install Ruby 3.2+ (x64) from RubyInstaller if it is not already installed on
PATHor underC:\Ruby*-x64. - Download
RubyLock-RPC-Setup-v1.3.0-win64.exefrom the Releases page. - Run the installer. It will:
- Extract
rubylock-rpc.exe,bin/rubylock-rpc,lib/,assets/icon.ico,assets/icon.png,LICENSE, andREADME.mdinto%LOCALAPPDATA%\RubyLock-RPC. - Save a copy of the setup executable as
%LOCALAPPDATA%\RubyLock-RPC\RubyLock-RPC-Setup.exefor future uninstallation. - Create "RubyLock RPC" shortcuts (
RubyLock RPC.lnk) on your Desktop and in your Start Menu pointing torubylock-rpc.exe. - Register an uninstaller entry in
HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\RubyLockRpcso RubyLock RPC appears in Windows Installed Apps / Add or Remove Programs.
- Extract
- Double-click the "RubyLock RPC" Desktop shortcut to launch Deadlock with
-condebugand Discord Rich Presence.
Note
Windows SmartScreen Warning: Windows may display a "Windows protected your PC" prompt because the executable is unsigned. Click More info -> Run anyway, or verify and build the installer yourself from source (ruby scripts/package.rb --exe).
The Windows installer supports unattended flags:
:: Silent install / in-place upgrade
RubyLock-RPC-Setup-v1.3.0-win64.exe --silent
:: Interactive uninstall
rubylock-rpc --uninstall
:: Silent uninstall
rubylock-rpc --uninstall --silentUninstalling deletes the Desktop and Start Menu shortcuts, removes the HKCU\...\Uninstall\RubyLockRpc registry key, and recursively deletes %LOCALAPPDATA%\RubyLock-RPC. You can also uninstall through Windows Settings -> Apps -> Installed Apps.
The Linux release (rubylock-rpc-linux-x86_64.tar.gz) contains the pure-Ruby source tree, a compiled native ELF wrapper (rubylock-rpc), an XDG desktop entry, icon assets, and install.sh / uninstall.sh scripts.
tar -xzf rubylock-rpc-linux-x86_64.tar.gz
cd rubylock-rpc-linux-x86_64
./install.shWhen run inside an X11 ($DISPLAY) or Wayland ($WAYLAND_DISPLAY) desktop session, install.sh automatically uses zenity (GNOME/GTK) or kdialog (KDE) to present a graphical setup dialog — including an Update/Reinstall vs. Uninstall picker if an existing installation is detected. On headless systems or without zenity/kdialog, it falls back cleanly to terminal output.
| Option | Description |
|---|---|
--silent, -y, --yes
|
Run non-interactively without GUI or terminal prompts. |
--gui |
Force graphical dialogs (requires zenity or kdialog). |
--uninstall |
(install.sh only) Delegate to uninstall.sh for the target prefix. |
--prefix DIR / --prefix=DIR
|
Override installation prefix (default: $PREFIX or $HOME/.local). |
-h, --help
|
Show usage help. |
With the default prefix ($HOME/.local):
| Path | Purpose |
|---|---|
$HOME/.local/share/rubylock-rpc/ |
Application root (bin/, lib/, assets/, uninstall.sh, LICENSE, README.md, and native ELF rubylock-rpc if packaged) |
$HOME/.local/bin/rubylock-rpc |
Symlink to $HOME/.local/share/rubylock-rpc/rubylock-rpc (or bin/rubylock-rpc) |
$HOME/.local/share/applications/rubylock-rpc.desktop |
XDG launcher entry with Categories=Game;Utility; and a right-click Uninstall RubyLock RPC desktop action |
$HOME/.local/share/icons/hicolor/256x256/apps/rubylock-rpc.png |
Application and system tray icon |
Tip
GNOME System Tray Support: KDE Plasma supports StatusNotifierItem tray icons out of the box. On GNOME, install and enable the AppIndicator and KStatusNotifierItem Support extension (pre-installed on Ubuntu and Pop!_OS) so the persistent RubyLock RPC icon appears in the top bar.
Note
Ensure $HOME/.local/bin is in your shell $PATH if you want to invoke rubylock-rpc from a terminal or Steam Launch Options without typing the full path.
You can uninstall via any of these methods:
- Run
rubylock-rpc --uninstall(add--silentfor non-interactive removal). - Right-click RubyLock RPC in your application launcher and choose Uninstall RubyLock RPC.
- Run
./uninstall.sh(or$HOME/.local/share/rubylock-rpc/uninstall.sh).
No build step is required to run RubyLock RPC from a Git clone:
git clone https://github.com/buntatoes/rubylock-rpc.git
cd rubylock-rpc
ruby bin/rubylock-rpc --no-launchBecause RubyLock RPC tracks match state by tailing game/citadel/console.log, Deadlock must be launched with the -condebug command-line flag. Three launch workflows are supported:
Launch RubyLock RPC from your Desktop shortcut (Windows) or application menu (Linux). With the default launch_game_on_start = true:
- RubyLock RPC starts the system tray icon and Discord IPC connection.
-
RubylockRpc::Launcher.launch_deadlockchecks whetherdeadlock.exeis already running. - If not running, it locates Steam and invokes:
<steam_executable> -applaunch 1422450 -condebug
In Steam, right-click Deadlock -> Properties -> General -> Launch Options and set:
rubylock-rpc --launch-with-command -- %command%(On Linux, if $HOME/.local/bin is not in Steam's environment PATH, use $HOME/.local/bin/rubylock-rpc or the full path to the executable.)
Launcher.launch_deadlock_with_command appends -condebug automatically if it is not already present (case-insensitive check) and spawns Steam's %command%. If another instance of RubyLock RPC is already active, the new invocation launches the game command and waits for the game process to exit while the existing instance keeps updating Discord.
Add -condebug manually to Deadlock's Steam Launch Options, then start RubyLock RPC independently:
rubylock-rpc --no-launchRubylockRpc::Steam (lib/rubylock_rpc/steam.rb) locates game/citadel/console.log automatically in the following priority order:
-
Configured Override (
general.game_folderinconfig.toml):- Verified by checking that
<game_folder>/game/citadelexists as a directory. - If the configured path is no longer valid (for example, Deadlock was moved to another Steam library drive), RubyLock RPC logs a warning, re-runs auto-detection, and persists the newly found path back to
config.toml.
- Verified by checking that
-
Steam
libraryfolders.vdf+appmanifest_1422450.acf:-
Windows: Queries
HKCU\Software\Valve\Steam(SteamPath) viawin32/registry, falling back toC:\Program Files (x86)\SteamandC:\Program Files\Steam, then reads<SteamRoot>\steamapps\libraryfolders.vdf. -
Linux: Checks:
$HOME/.steam/steam/steamapps/libraryfolders.vdf$HOME/.local/share/Steam/steamapps/libraryfolders.vdf-
$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/libraryfolders.vdf(Flatpak Steam)
- For each
"path"entry inlibraryfolders.vdf, checks forsteamapps/appmanifest_1422450.acf, extracts"installdir", and resolves<lib>/steamapps/common/<installdir>/game/citadel/console.log. - Once found, the detected game root is automatically persisted into
general.game_folderinconfig.toml.
-
Windows: Queries
-
Hardcoded Fallback Locations:
- Checks standard
steamapps/common/Deadlock/game/citadel/console.logpaths under the default Windows or Linux Steam directories.
- Checks standard
For Steam executable discovery (Steam.steam_exe_path):
-
Windows:
<SteamRoot>\steam.exe. -
Linux: Searches
PATHforsteam, then checks$HOME/.local/share/Steam/steam.sh,$HOME/.steam/steam.sh,/usr/bin/steam, and/usr/local/bin/steam.
Copyright (c) 2026 Buntato (buntatoes). RubyLock RPC is free software licensed under the GNU General Public License v3.0 (GPL-3.0), based on the upstream GPL-3.0 project HeyTariq/deadlock-rpc. Not affiliated with or endorsed by Valve Corporation.
Getting Started
Core Architecture
- Architecture and Internals
- Deadlock Detection and State Machine
- Discord IPC and Rich Presence
- System Tray and Auto-Updater
Safety, Dev & Support
Links