a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

Opening the main menu I created in my Python script directly when opening A-Shell

Open HsynKrkmz1991 opened this issue 1 month ago • 4 comments

Hi. Your app is very useful. I'm having a problem. I have a Python script that I created using yt-dlp and gallery-dl to download audio, video, and gallery files. It also has a home menu. Yes, it works fine, but I create a profile to open the main menu directly every time I open the a-shell app, but the main menu doesn't open directly. Is this an iOS limitation, or am I doing something wrong? Thanks for any help in advance. 🙏

HsynKrkmz1991 avatar Nov 17 '25 10:11 HsynKrkmz1991

Hi, I'm not sure I understand the issue; I'm not certain what it is that you call the "home menu" or the "main menu". It's likeley that the answer will be "it's an iOS limitation", but if you could explain your issue with more details?

holzschu avatar Nov 17 '25 13:11 holzschu

Hi, I'm not sure I understand the issue; I'm not certain what it is that you call the "home menu" or the "main menu". It's likeley that the answer will be "it's an iOS limitation", but if you could explain your issue with more details?

Thanks for your feedback. I created a Python download script with a main menu and added options for downloading videos, audio, and galleries. I’m also trying to add a .profile file so the app opens directly in the main menu every time I launch it, but it doesn’t seem to work. That’s what I was trying to explain. Also, I apologize for not being very technically savvy and for not expressing myself clearly.

HsynKrkmz1991 avatar Nov 17 '25 14:11 HsynKrkmz1991

Aaaah ! Thank you for the explanation, I understand. It's an a-Shell limitation: because opening and creating the terminal window takes a lot of time, the .profile is executed in parallel (so that the first prompt appears faster). The downside is that the .profile cannot write things in the window or, if it starts a command, it will not appear in the window.

That will change in a-Shell version 2.0 (where I will change the terminal window), but that will take time. You can put your python script as an alias in the .profile (alias d python my script.py) or put it in a button in the toolbar.

holzschu avatar Nov 17 '25 14:11 holzschu

Aaaah ! Thank you for the explanation, I understand. It's an a-Shell limitation: because opening and creating the terminal window takes a lot of time, the .profile is executed in parallel (so that the first prompt appears faster). The downside is that the .profile cannot write things in the window or, if it starts a command, it will not appear in the window.

That will change in a-Shell version 2.0 (where I will change the terminal window), but that will take time. You can put your python script as an alias in the .profile (alias d python my script.py) or put it in a button in the toolbar.

Yes, it actually already has a name, and it works. After I posted the message here explaining the problem, I created a small automation in the shortcuts app, and it worked. Thank you so much for your feedback. I wish you success.

HsynKrkmz1991 avatar Nov 17 '25 15:11 HsynKrkmz1991