I have latest Ubuntu Touch installed on Nexus 7.
I just apt-get installed there 'emacs' package. Currently I open Terminal application in Ubuntu Touch and key in "emacs" to get it launched.
I want to create .desktop launcher to start emacs in terminal (-nw) mode right from the Ubuntu Touch Unity desktop.
I want to keep using the new Ubuntu Touch terminal application as a shell to run emacs because the ubuntu touch terminal allows me to customise its toolbar to include custom shortcuts I need to use emacs with virtual keyboard. Like CTRL-X, CTRL-@, etc.
gnome-terminal does not look good because there would not be this helpful toolbar and I do not always use ubuntu touch with hardware keyboard available.
Besides, when I apt-get installed
gnome-terminal and added
gnome-terminal -e "emacs -nw" into my launcher, as kindly suggested below - this does not work, neither gnome-germinal nor emacs window appears, just short 'start app' animation. And
gnome-terminal is not nice because of it missing the custom keys toolbar, so I guess this is dead-end for me.
So I guess the question is - how should I modify the existing .desktop launcher for Ubuntu Touch Terminal application to make it open emacs on its launch?
Here is slightly cut default Ubuntu Touch terminal app .desktop launcher. How should I modify it to make it start
emacs in terminal mode when clicked?
[Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=aa-exec-click -p com.ubuntu.terminal_terminal_0.7.49 -- terminal Icon=/custom/click/.click/users/@all/com.ubuntu.terminal/terminal64.png Name=Terminal X-Ubuntu-Touch=true X-Ubuntu-Default-Department-ID=accessories Path=/custom/click/.click/users/@all/com.ubuntu.terminal X-Ubuntu-Old-Icon=terminal64.png X-Ubuntu-Application-ID=com.ubuntu.terminal_terminal_0.7.49 Name[en_US]=com.ubuntu.terminal_terminal_0.7.49.txt
Here is what I tried to put into the above launcher and what did not work:
Exec=aa-exec-click -p com.ubuntu.terminal_terminal_0.7.49 -- terminal emacs
Exec=aa-exec-click -p com.ubuntu.terminal_terminal_0.7.49 -- terminal -e "emacs -nw"