Add: open .mpackage files with Mudlet#7065
Conversation
|
Hey there! Thanks for helping Mudlet improve. 🌟 Test versionsYou can directly test the changes here:
No need to install anything - just unzip and run. |
|
Good stuff! Happy to see this :)
It's used by everything, the test, PTB, and release builds. |
|
This should add the file association on MacOS - Mudlet/installers#114. This feature should be finished after the installer update is merged, but I don't have Windows or MacOS available to test it on. |
e907d57 to
bcfac45
Compare
vadi2
left a comment
There was a problem hiding this comment.
LGTM, though I am a little unsure how to test this (I'm on a Chromebook). I'll try to get access to a mac later on.
vadi2
left a comment
There was a problem hiding this comment.
I think we need to get this into a PTB to really test this, since test builds do not install.
|
@guhitb the PR triggered this CodeQL warning - mind having a look at it? |
#7107) <!-- Keep the title short & concise so anyone non-technical can understand it, the title appears in PTB changelogs --> #### Brief overview of PR changes/additions - Replaced `Mudlet::registerInstanceCoordinator` with `Mudlet::takeOwnershipOfInstanceCoordinator`. - Used unique_ptr and std::move() to transfer ownership rather than passing a raw pointer of `MudletInstanceCoordinator`. #### Motivation for adding to Mudlet CodeQL warning  #7065 (comment) #### Other info (issues closed, discussion etc)
Mudlet#7107) <!-- Keep the title short & concise so anyone non-technical can understand it, the title appears in PTB changelogs --> - Replaced `Mudlet::registerInstanceCoordinator` with `Mudlet::takeOwnershipOfInstanceCoordinator`. - Used unique_ptr and std::move() to transfer ownership rather than passing a raw pointer of `MudletInstanceCoordinator`. CodeQL warning  Mudlet#7065 (comment)

Brief overview of PR changes/additions
MudletServerto keep track of Mudlet instances and allow them to communicate.FileOpenHandlerfor installing packages fromQEvent::FileOpenevents.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-SW1Examples
Installing a package on an already running instance of Mudlet
mudlet-.11.mp4
Queueing two packages for install by gui and cli. Displaying connection dialogue to determine which profile the packages should be installed on.
mudlet-.12.mp4
If no other instance of Mudlet is open, open Mudlet and install on first opened profile
mudlet-.13.mp4