Ubuntu下IntelliJ快捷方式位置查询:搜索可见却找不到对应文件?
Hey there! Let's track down where your IntelliJ shortcut is hiding. Since you can search for it in your desktop GUI but don't see it in /usr/share/applications or apt's records, here are the most likely places to check, along with commands to help you find it quickly:
Check your local user application folder
Most non-system-wide installs (like extracting a tar.gz archive or using JetBrains Toolbox) drop.desktopshortcuts in your user-specific directory. Run this command to look for it:ls ~/.local/share/applications | grep -i intellijIf you used JetBrains Toolbox, the shortcut might start with
jetbrains-instead—try this variation too:ls ~/.local/share/applications | grep -i jetbrainsSearch IntelliJ's installation directory
If you installed IntelliJ by extracting a tar.gz file, the.desktopshortcut might live directly inside the app's own folder. You can search your entire user directory for IntelliJ-related.desktopfiles with:find ~ -name "*intellij*.desktop" -type fThis command will return the full path to any matching files it finds.
Check for Snap/Flatpak installations
If you installed IntelliJ via Snap, its shortcuts are stored in this system directory:ls /var/lib/snapd/desktop/applications | grep -i intellijFor Flatpak installations, check these two locations (one for user-specific installs, one for system-wide):
ls ~/.local/share/flatpak/exports/share/applications | grep -i intellij ls /var/lib/flatpak/exports/share/applications | grep -i intellijUse the desktop file search tool
Ubuntu has a built-in command to scan all registered.desktopfiles across the system. Run this to get the exact path of your IntelliJ shortcut:desktop-file-search intellijThis will output the full path along with other details about the shortcut's configuration.
Once you locate the .desktop file, you can open it with a text editor to tweak its settings if you need to!
内容的提问来源于stack exchange,提问作者Alex Gagne

