Commit graph

2 commits

Author SHA1 Message Date
Excellencedev
30e6531b7d
Add telnet:// URI scheme support for one-click MUD connections (#8601)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
## Summary

Implements full support for `telnet://` links in Mudlet, allowing users
to connect to MUD servers with a single click from browsers or other
applications.


## Usage Example

Users can now click links like:
```html
<a href="telnet://aardmud.org:4000">Play Aardwolf MUD</a>
<a href="telnet://batmud.bat.org">Connect to BatMUD</a>
```

Or run from command line:
```bash
mudlet "telnet://testserver.com:2000"
```

Mudlet will:
1. Parse the URI
2. Find or create a matching profile
3. Auto-connect to the MUD server



### TESTING
I ran it on WEB and it worked fine. I ran it from command line, it
worked fine

HERE IS A DEMO VIDEO :
https://github.com/user-attachments/assets/143cc98a-3453-4bd9-bbe8-5b48c58db490


#### Motivation for adding to Mudlet
The bounty and to improve myself and contribute

#### Other info (issues closed, discussion etc)
/closes #689 
/claim #689 


#### CHECKLIST:
[x] Windows
[x] Linux
[x] macOS

---------

Co-authored-by: Stephen Lyons <slysven@virginmedia.com>
Co-authored-by: Mike Conley <sousesider@gmail.com>
2026-04-04 08:35:02 +02:00
guhitb
144b24e1bf
Add: open .mpackage files with Mudlet (#7065)
#### Brief overview of PR changes/additions
- Created `MudletServer` to keep track of Mudlet instances and allow
them to communicate.
- Added cli argument for installing a package.
- Created `FileOpenHandler` for installing packages from
`QEvent::FileOpen` events.
- Updated mudlet.desktop to associate Mudlet with .zip files on Linux.
- Created Info.plist to associate Mudlet with .mpackage files on MacOS.
- Added registry keys to associate Mudlet with .mpackage files on
Windows.
#### Motivation for adding to Mudlet
fixes #1083
/claim #1083
#### Other info (issues closed, discussion etc)
The Info.plist file needs to be copied into the app bundle for MacOS to
recognize it. I'm not sure how to do that. I found a reference to
mudlet.app in `CI/travis.osx.after_success.sh`, but I think that's just
for the CI build. Does someone know how Mudlet is installed on MacOS?
Related docs:
https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1

## Examples
**Installing a package on an already running instance of Mudlet**


https://github.com/Mudlet/Mudlet/assets/147658676/4457e496-a24f-420f-9bc3-3a879e7e4f9f


**Queueing two packages for install by gui and cli. Displaying
connection dialogue to determine which profile the packages should be
installed on.**


https://github.com/Mudlet/Mudlet/assets/147658676/a12edeea-6973-43c8-a691-cfb4524efdb1

**If no other instance of Mudlet is open, open Mudlet and install on
first opened profile**


https://github.com/Mudlet/Mudlet/assets/147658676/662d450a-6bbd-4528-88e6-4dba674cc82e
2024-01-07 14:48:57 +01:00