[Linux] 新增/移除程式到 CentOS 7 的 Applications > Favorites 選單內

[Linux] 新增/移除程式到 CentOS 7 的 Applications > Favorites 選單內

最近剛裝了 Terminator 這個 terminal 程式,

覺得不錯用,但平常要跑到 Applications > System Tools 裡面執行,

想說加到 Favorites 裡面去,卻不曉得要怎麼加?

 

查了一下,這篇文章是使用 Activity View 的方式來加的:

How can I add an application to the Favorites section of the Applications menu in CentOS 7?

 

1. 先到 Applications 點最下方的 Activity View 

Screenshot from 2015-12-30 10-56-04

 

2. 搜尋想加入的程式名稱,按右鍵加入我的最愛

像我搜尋 terminator 找到程式後,在圖示上按右鍵,

就可以選擇 Add to Favorites 將它加入我的最愛裡面:

Screenshot from 2015-12-30 10-57-38

 

再回到 Applications > Favorites 裡面,果然 Terminator 有被加進去了:

Screenshot from 2015-12-30 10-58-19  

 

現在剩下來的疑問是:那要怎麼把東西從 Favorites 裡移掉咧?? 

後來是找到用 gsettings 的方式來修改,不曉得有沒有更直覺的方法~

首先用 gsettings list-recursively 找到 favorite-apps 這個 key,

可以看到裡面列出了許多 app 的名字:

testuser@localhost ~ $ gsettings list-recursively | egrep -i fav
org.gnome.shell favorite-apps ['firefox.desktop', 'evolution.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'org.gnome.Nautilus.desktop', 'yelp.desktop', 'gnome-terminal.desktop', 'terminator.desktop']

 

像我只打算留下 firefox, shotwell, Nautilus, yelp, terminator 這幾個,

就執行下面的指令來設定就行了:

gsettings set org.gnome.shell favorite-apps "['firefox.desktop','shotwell.desktop', 'org.gnome.Nautilus.desktop', 'yelp.desktop','terminator.desktop']"

 

 

(本頁面已被瀏覽過 1,067 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料