問題描述
在GNOME Shell上,我想使用日曆並將其與我的Google日曆帳戶同步,但是我的計算機上裝有Thunderbird。我已經看到了幾篇文章,它們通過終端將Thunderbird設置為默認設置,但是這些更改並沒有影響桌麵麵板上的日曆。我過去曾經使用過Evolution,但我從未真正喜歡過它,但是如果需要,它將與它保持一致,以簡化Google日曆的同步。
最佳思路
您可以嘗試:https://github.com/vintitres/gnome-shell-google-calendar
幾個步驟就足夠了:
-
設置依賴項:
sudo apt-get install python-gtk2 python-dbus python-gdata python-iso8601 python-gnomekeyring
-
從以下位置下載:https://github.com/vintitres/gnome-shell-google-calendar/zipball/master
-
將其解壓縮到您喜歡的任何文件夾中。
-
運行
gnome-shell-google-calendar.py
:/path/where/you/extracted/gnome-shell-google-calendar/gnome-shell-google-calendar.py
-
您應該事先在Google上設置一個在線帳戶(請參閱:What are online accounts and how do they work?)。您應該得到以下提示:
A list of existing accounts is below.
If you do not see a list of accounts, then you first need to add one.
For more information, see http://library.gnome.org/users/gnome-help/stable/accounts.html0. yourname@gmail.com
Please choose the Account: -
輸入您的帳戶號碼,該程序將開始同步。
-
如果不想每次都手動運行它,則應將
gnome-shell-google-calendar.py
添加到啟動應用程序(請參閱此答案:How do I manage applications on startup in GNOME 3?,在字段”command”中插入gnome-shell-google-calendar.py的路徑)。
做完了!
次佳思路
不再需要特殊的軟件。隻需轉到“設置”->“在線帳戶”並添加您的Google帳戶即可。您的Google日曆將同步,事件將顯示在GNOME Shell日曆小部件中。
根據上麵的評論,此功能自3.8開始可用。我最初沒有看到該評論,而是開始按照頂部答案中的說明進行操作,然後看到設置中的“日曆”開關已生效。
第三種思路
雷鳥的Evolution Mirror擴展插件對我來說非常完美,非常簡單。
1)sudo apt-get install python-evolution python-gnome2
2)運行Evolution並一次通過set-up對話框。您可以使用偽造的憑據,沒關係。 (我不確定為什麽這是必要的,但是在add-on網站上的評論中建議這樣做。)關閉Evolution。
3)從網站上下載擴展文件(由於某種原因,我在Thunderbird的內置 add-on搜索器中找不到該擴展文件)。
4)轉到工具-> Add-ons。單擊搜索框旁邊的下拉菜單,然後選擇“從文件安裝Add-on”。選擇您剛剛下載的.xpi擴展文件。
5)重新啟動Thunderbird。您的Thunderbird事件現在應該出現在gnome(shell)時鍾applet中。如果您已經具有與Thunderbird同步的Google日曆,那麽此時,您的Google日曆將顯示在gnome時鍾子視圖中。
可選步驟
6)卸載Evolution(但不要卸載python-evolution)。不要purge evolution
。
7)如果運行gsettings set org.gnome.desktop.default-applications.office.calendar exec thunderbird
,則在時鍾小程序中單擊”Open Calendar”時,Thunderbird將打開。