Ubuntu 20のブートメニューを編集する為にGrub Customizerをインストールしました。
インストールするとアプリケーションにGrub Customizerのアイコンが登録されます。
ただ設定後は殆ど利用することもないと思い非表示にしてみました。
参考
Ubuntu デスクトップエントリー その1 – デスクトップエントリーについて・デスクトップエントリーの基本仕様
https://kledgeb.blogspot.com/2013/05/ubuntu-1_29.html
取り合えず調べてみます。
1 2 |
rootlinks@Ubuntu20:~$ ls -a .local/share/applications/ . .. |
1 2 |
rootlinks@Ubuntu20:~$ sudo ls -a /usr/local/share/applications/ ls: cannot access '/usr/local/share/applications': No such file or directory |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
rootlinks@Ubuntu20:~$ sudo ls -a /usr/share/applications/ . gnome-usage-panel.desktop .. gnome-user-accounts-panel.desktop apport-gtk.desktop gnome-wacom-panel.desktop apturl.desktop gnome-wifi-panel.desktop bluetooth-sendto.desktop grub-customizer.desktop defaults.list hplj1020.desktop evolution-calendar.desktop ibus-setup-mozc-jp.desktop firefox.desktop im-config.desktop gcr-prompter.desktop info.desktop gcr-viewer.desktop io.snapcraft.SessionAgent.desktop geoclue-demo-agent.desktop mimeinfo.cache gkbd-keyboard-display.desktop mutter.desktop gnome-applications-panel.desktop nautilus-autorun-software.desktop gnome-background-panel.desktop nm-applet.desktop gnome-bluetooth-panel.desktop nm-connection-editor.desktop gnome-camera-panel.desktop org.freedesktop.IBus.Panel.Emojier.desktop gnome-color-panel.desktop org.freedesktop.IBus.Panel.Extension.Gtk3.desktop gnome-connectivity-panel.desktop org.freedesktop.IBus.Setup.desktop gnome-control-center.desktop org.gnome.Calculator.desktop gnome-datetime-panel.desktop org.gnome.Characters.desktop gnome-default-apps-panel.desktop org.gnome.DiskUtility.desktop gnome-diagnostics-panel.desktop org.gnome.Evince-previewer.desktop gnome-disk-image-mounter.desktop org.gnome.Evince.desktop gnome-disk-image-writer.desktop org.gnome.Evolution-alarm-notify.desktop gnome-display-panel.desktop org.gnome.FileRoller.desktop gnome-info-overview-panel.desktop org.gnome.Logs.desktop gnome-initial-setup.desktop org.gnome.Nautilus.desktop gnome-keyboard-panel.desktop org.gnome.PowerStats.desktop gnome-language-selector.desktop org.gnome.Screenshot.desktop gnome-location-panel.desktop org.gnome.Shell.Extensions.desktop gnome-lock-panel.desktop org.gnome.Shell.PortalHelper.desktop gnome-microphone-panel.desktop org.gnome.Shell.desktop gnome-mouse-panel.desktop org.gnome.Terminal.desktop gnome-network-panel.desktop org.gnome.eog.desktop gnome-notifications-panel.desktop org.gnome.font-viewer.desktop gnome-online-accounts-panel.desktop org.gnome.gedit.desktop gnome-power-panel.desktop org.gnome.seahorse.Application.desktop gnome-printers-panel.desktop python3.8.desktop gnome-region-panel.desktop rygel.desktop gnome-removable-media-panel.desktop setup-mozc.desktop gnome-search-panel.desktop snap-handle-link.desktop gnome-session-properties.desktop software-properties-drivers.desktop gnome-sharing-panel.desktop software-properties-gtk.desktop gnome-sound-panel.desktop software-properties-livepatch.desktop gnome-system-monitor-kde.desktop system-config-printer.desktop gnome-system-monitor.desktop update-manager.desktop gnome-thunderbolt-panel.desktop vim.desktop gnome-ubuntu-panel.desktop xdg-desktop-portal-gtk.desktop gnome-universal-access-panel.desktop yelp.desktop |
/usr/share/applications/grub-customizer.desktopがそれですね。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
rootlinks@Ubuntu20:~$ sudo cat /usr/share/applications/grub-customizer.desktop [Desktop Entry] Name=Grub Customizer Comment=Customize the bootloader (GRUB2 or BURG) Exec=grub-customizer Terminal=false X-MultipleArgs=false Type=Application StartupNotify=false Categories=System;Settings; Icon=grub-customizer X-Ubuntu-Gettext-Domain=grub-customizer X-KDE-SubstituteUID=true Keywords=GRUB;GRUB2;BURG;configuration;settings;menu; |
非表示にします。grub-customizer.desktopをリネームしますが、.desktopで無ければ何でもいいと思います。
1 2 3 4 |
rootlinks@Ubuntu20:~$ sudo mv /usr/share/applications/grub-customizer.desktop /usr/share/applications/grub-customizer.desktop.hidden rootlinks@Ubuntu20:~$ sudo ls /usr/share/applications/grub-customizer.desktop* /usr/share/applications/grub-customizer.desktop.hidden |
起動する時はターミナルからコマンドを入力すれば起動できます。