Ish: Feature Request: URL Scheme

Created on 8 Jan 2019  Â·  10Comments  Â·  Source: ish-app/ish

It would be really nice to be able to open iSH from other apps using a url scheme. It doesn’t even have to perform actions in the app, just being able to open iSH would be great and enable a lot of automation.

Most helpful comment

https://github.com/tbodt/ish/issues/268

• iOS X callback and URL Scheme to run a shell command with arguments can be very very useful.
• With SIRI Shortcuts it can be used to run a bash / Perl / python script with command line arguments.
• X-callback also allows the called app to return a to the calling app with a success / error / canceled value.
• This would open a world of options to use this app

An example use of url scheme for such a thing is in Pythonista. The following is a url I use with x-callback in shortcuts to run a script in Pythonista-
pythonista3://switcher.py?action=run&args=-mget_state

To call back to the shortcuts app from Pythonista- I use the following in my python script:
app = UIApplication.sharedApplication()
app.openURL_(nsurl('shortcuts://x-success'))

All 10 comments

A URL scheme doesn't seem all that useful to me if it does nothing beyond opening the app...

maybe starting the command specified in the url ?
if started by url run the specified command and if not run the command from settings ...

The only way to control whether it runs the command in the url or not would be to close the app from the switcher.

ok


Francois

Le 8 janv. 2019 à 15:53, Theodore Dubois notifications@github.com a écrit :

The only way to control whether it runs the command in the url or not would be to close the app from the switcher.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/tbodt/ish/issues/260#issuecomment-452326150, or mute the thread https://github.com/notifications/unsubscribe-auth/ArnvUhrrYNvTtGPYwRoBy3X_OIdnJNsyks5vBLD0gaJpZM4Z0sTt.

The use case I had in mind was being able to run programs from an external code editor inside of iSH. This would be possible with just the ability to open the app. With some clever use of a .profile script a program could be sent to iSH automatically, upon opening, by some 3rd party automation app like Pythonista. Another step up would be the ability to open another app from ish with a shell command, but that’s a lot more work. I’m imagining ish as a way to connect Linux programs into scripts I already have on my phone. I’ll admit this is all really low priority stuff, but I find the automation aspect appealing. Thanks!

I should mention that the end goal would be some kind of iOS shortcuts integration, but that’s a long way down the road.

https://github.com/tbodt/ish/issues/268

• iOS X callback and URL Scheme to run a shell command with arguments can be very very useful.
• With SIRI Shortcuts it can be used to run a bash / Perl / python script with command line arguments.
• X-callback also allows the called app to return a to the calling app with a success / error / canceled value.
• This would open a world of options to use this app

An example use of url scheme for such a thing is in Pythonista. The following is a url I use with x-callback in shortcuts to run a script in Pythonista-
pythonista3://switcher.py?action=run&args=-mget_state

To call back to the shortcuts app from Pythonista- I use the following in my python script:
app = UIApplication.sharedApplication()
app.openURL_(nsurl('shortcuts://x-success'))

I think starting a session by url scheme will be easy to setup once PTS was implemented.

before it seem difficult, because you cannot start a new sesson if qlready ine is in progress.

The use case I had in mind was being able to run programs from an external code editor inside of iSH. This would be possible with just the ability to open the app. With some clever use of a .profile script a program could be sent to iSH automatically, upon opening, by some 3rd party automation app like Pythonista. Another step up would be the ability to open another app from ish with a shell command, but that’s a lot more work. I’m imagining ish as a way to connect Linux programs into scripts I already have on my phone. I’ll admit this is all really low priority stuff, but I find the automation aspect appealing. Thanks!

Now with "opener" you can open iSH and even set a shortcut to do using location time and intricate triggers using Launchcuts, autocuts, toolbox pro, and even notifications and batch actions together in the background with Pushcuts, and idroplinks allows many of these actions to happen even easier. If you do discover something useful and interesting with this please reach out to me on discord or here as I'm building a custom preconfigured setup and would like to setup a shortcut for this very reason. There are shortcuts that can clone git repos and many more I'm willing to share everything I have if you reach out.

Would be great to run commands via a URL param, my use case is with RoyalTSi and being able to open a SSH session using iSH

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sirredbeard picture sirredbeard  Â·  3Comments

rluvaton picture rluvaton  Â·  3Comments

goerz picture goerz  Â·  5Comments

fernandotcl picture fernandotcl  Â·  4Comments

BrammyH picture BrammyH  Â·  3Comments