update some content

This commit is contained in:
2021-10-28 14:13:06 +08:00
parent 97eb780aa4
commit 4f99455d8f
242 changed files with 1826 additions and 2616 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」\/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04",
"headline" : "在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」\/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04",
"description" : "\x3cp\x3e這幾天在ansible 寫了一份新的playbook給developer 用\x3c\/p\x3e\n\x3cp\x3e然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon\x3c\/p\x3e\n\x3cp\x3e我才發現原來之前的寫法不能用在 ubuntu 18.04 上\x3c\/p\x3e\n\x3cp\x3e只好又弄了一份出來\x3c\/p\x3e",
"description" : "\u003cp\u003e這幾天在ansible 寫了一份新的playbook給developer 用\u003c\/p\u003e\n\u003cp\u003e然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon\u003c\/p\u003e\n\u003cp\u003e我才發現原來之前的寫法不能用在 ubuntu 18.04 上\u003c\/p\u003e\n\u003cp\u003e只好又弄了一份出來\u003c\/p\u003e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -21,8 +21,8 @@
"accountablePerson" : "Eric Chang",
"copyrightHolder" : "Eric Chang",
"copyrightYear" : "2019",
"datePublished": "2019-12-16 13:59:26 \x2b0800 CST",
"dateModified" : "2019-12-16 13:59:26 \x2b0800 CST",
"datePublished": "2019-12-16 13:59:26 \u002b0800 CST",
"dateModified" : "2019-12-16 13:59:26 \u002b0800 CST",
"url" : "https:\/\/h.cowbay.org\/post\/add-system-wide-favorite-apps-in-dconf\/",
"wordCount" : "103",
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-2.jpg"",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1632901488" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1632901488" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -316,7 +316,7 @@ if (!doNotTrack) {
<p>原來的寫法是在 /usr/share/glib-2.0/schemas/ 底下新增一個設定檔</p>
<p>然後用dconf 去產生設定</p>
<p>原本的內容長這樣</p>
<pre><code>[com.canonical.Unity.Launcher]
<pre tabindex="0"><code>[com.canonical.Unity.Launcher]
favorites=['application://ubiquity.desktop', 'application://launchers.desktop', 'application://nautilus.desktop', 'application
://gnome-terminal.desktop', 'application://google-chrome.desktop', 'application://goldendict.desktop', 'application://stardict
.desktop', 'application://libreoffice-writer.desktop', 'application://libreoffice-calc.desktop', 'unity://running-apps', 'unit
@@ -328,7 +328,7 @@ y://expo-icon', 'unity://devices']
<li>mkdir -p /etc/dconf/profile</li>
<li>vim /etc/dconf/profile/user</li>
</ol>
<pre><code>#This line allows the user to change the default favorites later.
<pre tabindex="0"><code>#This line allows the user to change the default favorites later.
user-db:user
#This line defines a system database named msb
system-db:msb
@@ -336,7 +336,7 @@ system-db:msb
<li>mkdir -p /etc/dconf/db/msb.d</li>
<li>vim /etc/dconf/db/msb.d/00_msb_settings</li>
</ol>
<pre><code># Define default favorite apps
<pre tabindex="0"><code># Define default favorite apps
[org/gnome/shell]
favorite-apps = ['chromium-browser.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
</code></pre><p>把這些步驟改成 ansible 語法再派送到client ,重開機之後就可以正確顯示設定好的「我的最愛」了</p>
@@ -629,7 +629,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1632901488"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
</body>
</html>