Skip to content

Commit 0143098

Browse files
committed
docs: update instructions
1 parent bbfa05b commit 0143098

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In comparison, the linux-amd64 build for `golt` is a single 6.8MB binary.
2323
Either download the latest binary from the [Releases](https://github.com/chowder/golt/releases) page (or build it
2424
yourself), and add it to a directory on your `PATH`.
2525

26-
Then, create a desktop entry for the application:
26+
Then, create a desktop entry for this application:
2727

2828
```
2929
[Desktop Entry]
@@ -33,17 +33,27 @@ Exec=golt %U
3333
StartupNotify=true
3434
Terminal=true
3535
MimeType=x-scheme-handler/jagex;
36+
Categories=Game;
37+
Name[en_US]=golt
3638
```
3739

40+
Place it under `/usr/share/applications/golt.desktop`
41+
3842
Then, register it to be the default handler for the `jagex:<...>` scheme:
3943

40-
```
44+
```bash
4145
xdg-mime default golt.desktop x-scheme-handler/jagex
4246
```
4347

44-
Finally, set up an iptable entry to redirect `localhost:80` to `localhost:8080`:
48+
And reload the MIME-types database:
4549

50+
```bash
51+
update-desktop-database
4652
```
53+
54+
Finally, set up an iptable entry to redirect `localhost:80` to `localhost:8080`:
55+
56+
```bash
4757
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
4858
```
4959

@@ -71,4 +81,4 @@ As for the iptable entry, most Linux distros don't allow binding to port 80, so
7181
# Disclaimer
7282

7383
This project is not affiliated with or endorsed by Jagex Ltd. It is an independent project created for educational and
74-
testing purposes. Please use responsibly and adhere to Jagex's terms of service.
84+
testing purposes. Please use responsibly and adhere to Jagex's terms of service.

0 commit comments

Comments
 (0)