Skip to content

Run gnome shell google calendar on startup

jdhoek edited this page Jun 4, 2012 · 15 revisions

Using Gnome Session Properties

Type the following in a terminal:

$ gnome-session-properties

Add new program:

  • Name: "gnome-shell-google-calendar"
  • Path: "python /path/to/script/gnome-shell-google-calendar.py --account [email protected]"

Manually

Type the following in a terminal:

cd ~/.config/autostart
nano gnome-shell-google-calendar.py.desktop

Example of "gnome-shell-google-calendar.py.desktop" file:

[Desktop Entry]
Type=Application
Exec=python /opt/gnome-shell-google-calendar/gnome-shell-google-calendar.py --account [email protected]
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Gnome Callendar shell
Comment=Sync calendar

Set Google Calendar as default application

Type the following in a terminal:

For Chromium

$ gsettings set org.gnome.desktop.default-applications.office.calendar exec "chromium-browser 'https://calendar.google.com'"

For Google Chrome

$ gsettings set org.gnome.desktop.default-applications.office.calendar exec "google-chrome 'https://calendar.google.com'"

Optionally, call Chrome/Chromium with --app='https://calendar.google.com' instead of just the URL to run the browser in application-mode; not showing the menu and location bar.