LoginSignup
0
0

Add custom applications to GNOME (make log files openable by less -R with double-click)

Last updated at Posted at 2024-02-02
  1. Write ~/.local/share/applications/xyz.desktop
  2. Run update-desktop-database

There are quite many websites how to write .desktop eg https://devicetests.com/add-custom-app-launchers-ubuntu-dock or https://fostips.com/add-app-start-menu-ubuntu-linux/ .

For example, in my case, I needed to have log files openable by less -R, hence I needed to do:

lessR.sh
cat <<EOM > ~/.local/share/applications/less-R.desktop
# Put to .local/share/applications/less-R.desktop

[Desktop Entry]
Name=less -R
Comment=less with ansi sequence interpreted
Exec=less -R %F
Type=Application
MimeType=text/plain;
Categories=Utility;
Terminal=true
EOM

update-desktop-database

It took 5 years to my issue resolved, by my own...


アプリケーションを追加する(ログファイルをダブルクリック時にless -Rで開けるようにする)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0