Giter Site home page Giter Site logo

Comments (6)

roshanravan avatar roshanravan commented on July 24, 2024 1

You are so Awesome! that was so cool, the good thing is now i can also make a Termux Widget and shortcut too, i am going to write a tutorial for running Hollywood Terminal with one click later

from termux-tasker.

 avatar commented on July 24, 2024

You need to create launch script in ~/.termux/tasker which will call whatever you need.
If you have installed Ubuntu with scripts from https://github.com/Neo-Oli/termux-ubuntu/blob/master/ubuntu.sh, then you should be able to pass necessary arguments to start-ubuntu.sh so it will launch your program instead of just bash shell.

from termux-tasker.

roshanravan avatar roshanravan commented on July 24, 2024

i created a myscript.sh in ~/.termux/tasker 👍
#!/bin/bash
./ubuntu_directory/start-ubuntu.sh
but didn't work

from termux-tasker.

 avatar commented on July 24, 2024

#!/bin/bash

=> #!/data/data/com.termux/files/usr/bin/bash

Termux is not standard environment and shebangs here different. Within shell you are saved by termux-exec hook but outside (Tasker plugin) is not.

./ubuntu_directory/start-ubuntu.sh
but didn't work

Yes, in that variant it will not work. Use absolute paths here and call script with its interpreter. Example:

bash /data/data/com.termux/files/home/ubuntu_directory/start-ubuntu.sh

from termux-tasker.

roshanravan avatar roshanravan commented on July 24, 2024

it actually worked,
#!/data/data/com.termux/files/usr/bin/bash
bash /data/data/com.termux/files/home/ubuntu_directory/start-ubuntu.sh

so with that the Ubuntu chroot terminal opens but now how to implant "hollywood" command after that?

from termux-tasker.

 avatar commented on July 24, 2024

how to implant "hollywood" command after that?

Try

bash /data/data/com.termux/files/home/ubuntu_directory/start-ubuntu.sh /usr/games/hollywood

from termux-tasker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.