2024-07-03 18:08:14 +02:00
|
|
|
<!-- @format -->
|
|
|
|
|
2024-04-20 10:59:43 +02:00
|
|
|
# Custom app menu entries
|
2024-04-20 10:18:33 +02:00
|
|
|
|
2024-04-20 10:59:43 +02:00
|
|
|
These can be used for either `~/.local/share/applications` or
|
|
|
|
`/usr/local/share/applications` which are read by graphical desktop
|
|
|
|
environments for their app menus and default applications selections.
|
2024-04-20 10:18:33 +02:00
|
|
|
|
2024-04-20 10:59:43 +02:00
|
|
|
Additionally `~/.config/autostart` or `/etc/xdg/autostart` could symlink here
|
|
|
|
so graphical desktop environments started the apps on login.
|
|
|
|
|
|
|
|
<!-- editorconfig-checker-disable -->
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
|
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
|
|
|
|
- [`a-*.desktop`](#a-desktop)
|
|
|
|
- [Refreshing the menus](#refreshing-the-menus)
|
2024-05-11 09:37:05 +02:00
|
|
|
- [Default applications](#default-applications)
|
2024-04-20 10:59:43 +02:00
|
|
|
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
<!-- editorconfig-checker-enable -->
|
2024-04-20 10:18:33 +02:00
|
|
|
|
|
|
|
## `a-*.desktop`
|
|
|
|
|
|
|
|
These files are companions to my script repos `bash/usr-local-bin/*` belonging
|
2024-07-03 18:08:14 +02:00
|
|
|
to `/usr/local/share/applications` and are named so to avoid masking package
|
|
|
|
manager. They have clearly different names such as using all caps.
|
2024-04-20 10:59:43 +02:00
|
|
|
|
2024-07-03 18:08:14 +02:00
|
|
|
Apparently one can also have subdirectories in
|
|
|
|
`/usr/local/share/applications/` and `~/.local/share/applications/` making
|
|
|
|
life easier.
|
2024-04-29 09:19:37 +02:00
|
|
|
|
2024-04-20 10:59:43 +02:00
|
|
|
## Refreshing the menus
|
2024-04-20 10:18:33 +02:00
|
|
|
|
|
|
|
```bash
|
2024-04-20 10:59:43 +02:00
|
|
|
update-desktop-database -v ~/.local/share/applications
|
2024-04-20 10:18:33 +02:00
|
|
|
sudo update-desktop-database -v /usr/local/share/applications
|
|
|
|
```
|
2024-05-11 09:37:05 +02:00
|
|
|
|
|
|
|
## Default applications
|
|
|
|
|
|
|
|
[Codium documentation](https://github.com/VSCodium/vscodium/blob/1.89.1.24130/docs/index.md#how-do-i-fix-the-default-file-manager-linux)
|
|
|
|
points out the existence of `~/.config/mimeapps.list` and gives these two
|
|
|
|
examples:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
[Default Applications]
|
|
|
|
inode/directory=org.gnome.Nautilus.desktop;
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
% grep directory /usr/share/applications/mimeinfo.cache
|
2024-06-06 19:38:36 +02:00
|
|
|
inode/directory=codium.desktop
|
|
|
|
org.gnome.Nautilus.desktop
|
2024-05-11 09:37:05 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
TODO: I wonder if it needs an `update-desktop-database` or similar though.
|