ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.98k stars 894 forks source link

/dev/share #245

Open itskenny0 opened 5 years ago

itskenny0 commented 5 years ago

Would it be possible to introduce a /dev/share device that would pop up the iOS share dialogue when you copy a file to it? That would be an extremely useful and scriptable mechanism to export files.

InukVT commented 5 years ago

Like doing ls | /dev/share?

itskenny0 commented 5 years ago

I was thinking cat image.jpeg >/dev/share. I'm not too knowledgeable regarding unix devices so this might not be the best idea.

tbodt commented 5 years ago

I can see problems if more than one program writes to /dev/share at the same time.

itskenny0 commented 5 years ago

Again, not very knowledgeable about unix devices, but can't they implement some sort of locking preventing other pids from writing to it while another is?

Maybe there is a better way to do this, this was just my first idea. However, I can see a lot of potential in creating hooks into iOS features from within shell scripts or CLI applications.