Skip to content

Add support for telnet:// links#2666

Closed
vadi2 wants to merge 7 commits intoMudlet:developmentfrom
vadi2:feature_telnet_URI
Closed

Add support for telnet:// links#2666
vadi2 wants to merge 7 commits intoMudlet:developmentfrom
vadi2:feature_telnet_URI

Conversation

@vadi2
Copy link
Copy Markdown
Member

@vadi2 vadi2 commented Jun 27, 2019

Brief overview of PR changes/additions

Add support for telnet:// links

Motivation for adding to Mudlet

#689

Other info (issues closed, discussion etc)

@jerzerisz started on this work in his branch last October but never submitted a PR, I found this in his branch and updated to latest development

@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jun 27, 2019

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@vadi2 vadi2 self-assigned this Jun 27, 2019
@vadi2
Copy link
Copy Markdown
Member Author

vadi2 commented Jun 27, 2019

Ah - the support for actually registering Mudlet to open telnet:// links is unfinished and only started on for Linux.

#elif defined(Q_OS_LINUX)
registerTelnetURI->setEnabled(true);
#elif defined(Q_OS_FREEBSD)
registerTelnetURI->setEnabled(false);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will test this when I can get around to booting FreeBSD

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it does anything there right now... hold off for now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it should be very similar - I hope...

if (tolower(argument) == 'q') {
action |= 4;
}
} else {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to review this to specify a command line argument as an introducer for a profile to load - with another one to NOT autoload any that are already set to autorun on start-up - it will make the string to fire up the Mudlet instance a bit longer though...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i.e. instead of something like /path/to/executable/mudlet game.domain.org:portNumber we use /path/to/executable/mudlet -l game.domain.org:portNumber so that the -l (or --load) option indicates that what follows is a Game server address to connect to - this makes it a bit easier to parse the command line as I understand it. It is more flexible if the user wants to open more than one profile at a time as then, if there are other options that can (in the future) be applied from the command line, the options can be applied to a specific profile.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree!

@SlySven
Copy link
Copy Markdown
Member

SlySven commented Sep 3, 2019

As a side effect of #3018 we (or the sub-project QtKeyChain) is using the Qt DBus module - that seems to be a possible way to improve the ability to integrate Mudlet with other applications AND the OS - at least for the *nix case.

…_URI

# Conflicts:
#	src/main.cpp
#	src/mudlet.h
@vadi2
Copy link
Copy Markdown
Member Author

vadi2 commented Sep 27, 2019

Closing in favour of #3131.

@vadi2 vadi2 closed this Sep 27, 2019
@vadi2 vadi2 deleted the feature_telnet_URI branch September 29, 2019 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants