| Downloads | 69 |
|---|---|
| Updated | 1 month ago |
| Released | 1 month ago |
| Identifier | LinuxUrlHandler |
| Numeric ID | 938 |
| Min. Openplanet | 1.26.0 |
An Openplanet plugin for Trackmania 2020 that enables the use of the URL handler from linux, using a net socket to pass the call from linux to Trackmania running in the wine prefix.
Create a file like this in your ~/.local/share/applications directory
[Desktop Entry]
Type=Application
Name=Trackmania URL Handler
Exec=sh trackmania-handler.sh %u
Terminal=false
NoDisplay=true
MimeType=x-scheme-handler/trackmania;
Create a file somewhere on your system PATH (such as ~/.local/bin called trackmania-handler.sh) with the following content:
#! /bin/sh
echo $1 | nc -N -w1 127.0.0.1 2020
Depending on your distro, you may need to run update-desktop-database after creating the desktop entry, before the scheme handler starts working.