W
W
Wilzaaa2019-02-20 09:43:01
linux
Wilzaaa, 2019-02-20 09:43:01

How to create a shortcut to a snap app?

I installed the application using snap, but it did not appear in the menu. When you try to run from the console, the application opens, though with a bunch of errors:

$ snap run termius-app     
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Документы': No such file or directory
/snap/termius-app/28/bin/desktop-launch: line 239: [: /home/user/snap/termius-app/28/Рабочий: binary operator expected
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Загрузки': No such file or directory
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Музыка': No such file or directory
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Изображения': No such file or directory
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Видео': No such file or directory
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Общедоступные': No such file or directory
ln: failed to create symbolic link '/home/user/snap/termius-app/28/snap/termius-app/28/Шаблоны': No such file or directory
Gtk-Message: Failed to load module "pantheon-filechooser-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SOTVM, 2019-02-20
@Wilzaaa

in the ~/.local/share/applications directory create the xxx.desktop file
in Exec=write the absolute path to the executable file
Categories=in which menu category this "launcher" should be displayed
for example or see other/similar files in the /usr/ directory share/applications

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=PeaZip
MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
GenericName=Archiving Tool
Exec=peazip %F
Icon=peazip
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=GTK;KDE;Utility;System;Archiving;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question