由于某种原因,我无法在 Ubuntu 22.04 中通过快捷方式(终端图标)打开终端。不过,它是通过 Visual Studio Code 运行的,所以这让我很困惑。我尝试使用 F 键,但它们仅适用于 fn 功能(例如控制亮度)。我对 Ubuntu 的工作原理不是很了解,所以我非常困惑。
我确实尝试(不成功)将我的 python 版本更改为 3.11。
编辑:内容/usr/share/applications/org.gnome.Terminal.desktop:
[Desktop Entry]
Name=Terminal
Comment=Use the command line
Keywords=shell;prompt;command;commandline;cmd;
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=org.gnome.Terminal
Type=Application
Categories=GNOME;GTK;System;TerminalEmulator;
StartupNotify=true
StartupWMClass=Gnome-terminal
X-GNOME-SingleWindow=false
OnlyShowIn=GNOME;Unity;
Actions=new-window;preferences;
X-Ubuntu-Gettext-Domain=gnome-terminal
[Desktop Action new-window]
Name=New Window
Exec=gnome-terminal --window
[Desktop Action preferences]
Name=Preferences
Exec=gnome-terminal --preferences
Run Code Online (Sandbox Code Playgroud)