我想在终端中从gnome开始一个gnu-screen会话。我编写了以下桌面文件
[Desktop Entry]
Version=1.0
Name=Screen
Comment=Use the command line
Keywords=shell;prompt;command;commandline;cmd;
TryExec=gnome-terminal
Exec=gnome-terminal --window --full-screen -e 'screen -x autoscreen'
Icon=utilities-terminal
Type=Application每次我运行这个桌面条目时,带有gnu-screen会话的新gnome终端就会启动。但是,我想切换到已经运行的窗口,而不是启动一个新的窗口。
发布于 2019-01-20 15:33:07
我不知道我到底做了什么,但这件事做得很好
[Desktop Entry]
Name=Screen
Comment=Use the command line
Keywords=shell;prompt;command;commandline;cmd;
TryExec=screen
Exec=gnome-terminal --full-screen --class gnome-terminal-server -e 'screen -x autoscreen'
Icon=utilities-terminal
Type=Application
StartupWMClass=gnome-terminal-serverhttps://unix.stackexchange.com/questions/495344
复制相似问题