dragonlinux / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
1 stars 0 forks source link

local:// should accept argument #490

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I saw on forum 

am start
'ssh://root@192.168.0.162:22/#root%40192.168.0.162#Intent;action=android.intent.
action.VIEW;launchFlags=0x4000000;end'

then found in -documentation- /source/

    <intent-filter>
         <action android:name="android.intent.action.VIEW" />
         <category android:name="android.intent.category.DEFAULT" />
         <category android:name="android.intent.category.BROWSABLE" />
         <data android:scheme="ssh" />
         <data android:scheme="telnet" />
         <data android:scheme="local" />
         <!-- format:  ssh://user@host:port/#nickname  -->
         <!-- format:  telnet://host:port/#nickname  -->
         <!-- format:  local://  -->
   </intent-filter>

I intuitively tried

am start
'local:///data/Foo/Myscript#root%40192.168.0.162#Intent;action=android.intent.ac
tion.VIEW;launchFlags=0x4000000;end'

... and it failed; after a second look at local:// ... it does not take any 
argument: not possible to start console and launch a program in. Why ?

Apps can be started outsite console by just calling their files; connect bot 
can be remotely started from adb; gscript can show output of commands, but 
nobody ever needed to remotely start an application inside an interactive 
console like ConnectBot ?

Original issue reported on code.google.com by ben...@demaine.info on 13 Aug 2011 at 7:47

GoogleCodeExporter commented 8 years ago
I agree this would very useful feature for many shell script/chroot environment 
frontends.

Original comment by pmis...@gmail.com on 19 Feb 2012 at 4:15