Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.34k stars 850 forks source link

Nemo's "open in terminal" does not open in current folder but $HOME instead #572

Closed srj-github closed 3 years ago

srj-github commented 4 years ago

I believe that a fix like this one is required https://github.com/gnunn1/tilix/issues/162#issuecomment-199329035

domenicostefani commented 3 years ago

You can make a bash script that runs "cool-retro-term --workdir $PWD", where $PWD contains the current working directory. Then make the script executable, move it to /bin/ and then edit the Exec property in the cool-retro-term app launcher (or create a new one like I did) that is in /usr/share/applications to run the new script.

The script /bin/openherecrt:

#!/bin/bash 
cool-retro-term --workdir $PWD

A .desktop applauncher for this:

[Desktop Entry]
Comment=Use the command line the old way
Exec=openherecrt
GenericName=Terminal emulator
Icon=cool-retro-term
Name=Open cool-retro-terminal Here
Categories=System;TerminalEmulator;
StartupNotify=true
Terminal=false
Type=Application
Keywords=shell;prompt;command;commandline;

Copy the launcher to /usr/share/applications/openherecrt.desktop, change the default terminal app to this and you should be good to go.

srj-github commented 3 years ago

Thank you but I have not used this terminal for ages. I'll close the issue.

smnski commented 1 year ago

I found a much easier solution for this problem.

Go to local/share/nemo/actions and create a someName.nemo_action file with the following code:

[Nemo Action] Name=name for this action here Comment=some optional comment here Exec=cool-retro-term --workdir "%F" Icon-Name=cool-retro-term Selection=Any Extensions=dir;

Now you can open any directory in the cool retro terminal from the right click menu.