21

I installed Ubuntu 19.10 and have issues trying to create a desktop icon with gnome-desktop-item-edit.

$ sudo gnome-desktop-item-edit ~/Desktop/ --create-new

  sudo: gnome-desktop-item-edit: command not found

$ which gnome-panel

  /usr/bin/gnome-panel

$ gnome-panel --version

  gnome-panel 3.34.0

Is this an issue with Ubuntu 19.10 or a problem with the gnome-panel package?

pomsky
  • 70,557
hd625b
  • 321

1 Answers1

34

Yes, indeed it seems gnome-desktop-item-edit is removed from the gnome-panel package, it won't be available for Ubuntu 19.10 (and most likely later releases).

As an workaround you can create .desktop files by hand. Just create a blank text file and add the following lines to it for a simple one:

[Desktop Entry]
Name=<NAME OF THE APPLICATION>
Comment=<A SHORT DESCRIPTION>
Exec=<COMMAND-OR-FULL-PATH-TO-LAUNCH-THE-APPLICATION>
Type=Application
Terminal=false
Icon=<ICON NAME OR PATH TO ICON>
NoDisplay=false

Then rename the file as APPNAME.desktop and right-click and select 'allow launching' (you may also have to make it executable).

Also the .desktop files for installed applications are usually found in your /usr/share/applications/ directory (or /var/lib/snapd/desktop/applications/ for snap applications). You can copy a .desktop file from there.

For a GUI alternative you may use alacarte (aka 'Main Menu'). Install it by running (the 'universe' repo needs to be enabled)

sudo apt install alacarte

It creates a .desktop launcher in your ~/.local/share/applications/ directory by default (and hence it makes the application available in your list of applications, so that you can launch it from your Activities overview or Applications overview). You can copy the created .desktop file afterwards.

pomsky
  • 70,557