Environment:
Raspberry Pi 5 8 G
Raspbian 64 bit OS "Bookworm"
Python 3.11.2
I can open a terminal window just fine at startup by editing my .config/wayfire.ini file and adding the following beneath the [autostart] line - but notice that I need the terminal window to open IN the virtual environment::
Using the above code, the window opens at startup, and the prompt line indicates it is IN the ~/Desktop/CORE directory, but the "(CORE)" prefix to the prompt, which is normally present when I am actually in the VE, is not present. I can manually issue the bin/activate command and everything works normally after that... but I need the VE to be running in the automatically opened terminal window. I initially tried the code above just using the "source bin/activate" line after the cd but that obviously didn't work
I've tried several other things as well, including autostarts, .desktop and systemd files - nothing seems to want to open with the VE running in that terminal window! And I need it to because the window will - when this issue is fixed - remain open while it runs a python script (which needs to run in the VE) which reports to and receives user input through - that same terminal window...
FWIW, I also spent a good hour with ChatGPT to see if that could solve my issue (it's been very helpful in the past on coding issues) - but even ChatGPT couldn't seem to figure this one out. I'm guessing a real human may have better insight here![Smile :)]()
Thanks for any & all help!
Raspberry Pi 5 8 G
Raspbian 64 bit OS "Bookworm"
Python 3.11.2
I can open a terminal window just fine at startup by editing my .config/wayfire.ini file and adding the following beneath the [autostart] line - but notice that I need the terminal window to open IN the virtual environment::
Code:
lxterminal_run=lxterminal --command "bash -c 'cd /home/RPI1/home/Desktop/CORE && source /home/RPI1/Desktop/CORE/bin/activate && exec bash'"

FWIW, I also spent a good hour with ChatGPT to see if that could solve my issue (it's been very helpful in the past on coding issues) - but even ChatGPT couldn't seem to figure this one out. I'm guessing a real human may have better insight here

Thanks for any & all help!
Statistics: Posted by dave xanatos — Sun Feb 16, 2025 11:10 pm — Replies 2 — Views 53