Open Safari on Mac Client from RDP or Citrix - macos

I have a scenario where I have users accessing our company application either via Citrix or RDP.
The app needs to make a call from within the session to the client pc so it can open a browser for credit card entry.
This is all working okay as I'm using COM to make the call on Windows clients, however I'm not exactly sure how to approach this for Mac.
I believe a start might be able to use AppleScript to open the browser, but not sure on the best way to call the AppleScript. Should I create a C++ app written in xCode.
I'm new to any apple development, so any help or direction would be helpful.

If you have access to the shell on the remote Mac all you need to do to open Safari (or other default browser) is to execute open <URL>, for example:
open http://example.com

Related

How to wrap web app to windows 10 desktop app?

I have a web application (accessed by clients using standard browser) which is available on custom individual url for each client and I would like to "generate" a "custom desktop application" (probably zip file with some exe file and some xml config file - where exe runs webview with url from xml) which can be installed on clients computer (Windows 10 support only is ok). This application when launched will open frameless window (no menu, no url bar etc) of a custom size with webview opening the defined https url (url will contain secret login hash for user / or session must be kept even after computer restart etc ..). This app should run only online (no offline mode needed).
The goal is to take one simple specific proces (entering simple data) from a complex web application and make this simple process easilly accessible for users (just click icon and enter data, submit to server, close, no login ever needed).
I have no experience developing for Windows 10, but I expect there must be some easy "universal app" solution as probably more developers are solving the same problem. What are the most (time) effective, but standard and safe possibilities?
I found a nice tutorial: https://www.todesktop.com/guides/nativefier. This tool is based on Node.js, which works fine on macOS, Windows, or Linux.
First, install Node.js on your computer. Then, run
npm i nativefier -g
to install nativefier. You can wrap your web app into native app simply by running
nativefier "your-url" --name "Application Name"
You can read the post for further information, like code signing your application, generating native installers, etc.

Alternative to Citrix Receiver

We have an application deployed on a windows server. The application has a GUI that our business partners access by using Citrix Receiver. The way they access this GUI is by clicking an icon on Citrix Receiver Desktop App, which basically runs an exe file to give them this access. I am wondering if there is an alternative to Citrix so that users can still access the app in a similar way. We are not in a position to provide remote access to our app servers. Please advise and let me know if I need to provide any more details about this.
Answer out of my comment:
If the App is published by Citrix you need the Citrix Receiver / Citrix Workspace app. If you have a Citrix Virtual Desktop (VDI) you could configure on your Storefront the HTML5 option and launch it in the browser.
Greetings

How mobile Firefox addon can recieve information from it's Desktop version? (if both are logged in)

I want to be able to close tabs on my mobile Firefox, while using Desktop version of Firefox. I thought Tab-sync would make it work, but it doesn't. So now I'm on the quest to fix it with an extension.
I have thought about using sync area of storage (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync) but it's not supported on Android.
Do I have to build some external service to send command from Desktop version to that service and then use Mobile Firefox extension to do the polling or there is a better way to utilize fact that I'm logged on both of these devices.
Any ideas please?

How do I start a desktop application from the browser on a Mac?

I'm building a web application that when finished will need to trigger a desktop app to open and load a specific file (or connect to a URL I'm passing to the desktop app).
I'm having a hard time finding documentation about how to do that on a Mac, can you point me to the right place?
You want to define a custom URL protocol.
Here is an example;
http://weblogs.asp.net/morteza/How-to-run-a-desktop-application-from-a-web-page
Here are some notes about how to do it on a Mac;
https://superuser.com/questions/548119/how-do-i-configure-custom-url-handlers-on-os-x
https://onflapp.wordpress.com/lincastor/

Print Dialog Extension - Connecting to Network when running the PDE on a sandboxed app

I am creating a Print Dialog Extension (PDE) for Mac OSX.
In that PDE, I need to connect to the network for authentication.
However, due to sandboxing, when I tried the PDE in TextEdit, I cannot connect to LDAP.
From the console, it says sandboxd denied network-outbound for TextEdit.
Apparently, the sandboxed TextEdit does not allow network connections.
I just like to ask, what is the best way to fix this?
How can I enable network connection in my PDE, even if the app it runs on does not allow it?
Can I also extend the sandbox profile of an app using my PDE (to add network connection entitlements)?
Any help or tips will be greatly appreciated.
Edit: Currently, I am looking at XPC services. Right now, XPC seems to not work, maybe because the PDE plugin runs on top of an app, e.g. TextEdit, and my XPC service is not within the Main App's bundle.

Resources