Difference between revisions of "Pantheon"

From ArchWiki
Jump to: navigation, search
m (Workaround for gala crashing right on start)
(Autostart applications: mention a way to use xdg autostart with .xinitrc)
Line 104: Line 104:
 
===Autostart applications===
 
===Autostart applications===
  
Pantheon, when launched via {{Ic|~/.xinitrc}}, does not support XDG autostart. However, there are 2 other ways to achieve this for applications which do not provide a systemd unit:
+
Pantheon, when launched via {{Ic|~/.xinitrc}}, does not support XDG autostart. However, there are 3 other ways to achieve this for applications which do not provide a systemd unit:
  
 
* You may add any program to your {{Ic|~/.xinitrc}}, preferably right before the ''exec cerbere'' line. This is the better choice for one-shot programs.
 
* You may add any program to your {{Ic|~/.xinitrc}}, preferably right before the ''exec cerbere'' line. This is the better choice for one-shot programs.
 
* Or you may edit the {{Ic|org.pantheon.cerbere.monitored-processes}} key using ''dconf-editor'' and add the programs of your choice. This method is best for applications which keep running in the background.
 
* Or you may edit the {{Ic|org.pantheon.cerbere.monitored-processes}} key using ''dconf-editor'' and add the programs of your choice. This method is best for applications which keep running in the background.
 +
* Or you may use a program like {{aur|dapper}}, {{aur|dex-git}}, or {{aur|fb-autostart}} to add support for XDG autostart in your {{ic|~/.xinitrc}}.
  
 
{{Note|Keep in mind that applications started via ''cerbere'' cannot be terminated, they will keep respawning.}}
 
{{Note|Keep in mind that applications started via ''cerbere'' cannot be terminated, they will keep respawning.}}

Revision as of 12:41, 9 February 2014

Summary help replacing me
This article covers basic installation procedures and configuration methods for Pantheon, the default desktop environment of elementary OS.
Related
GNOME: A DE which is also based on GTK3.

Pantheon is the default desktop environment originally created for the elementary OS distribution. It is written from scratch using Vala and the GTK3 toolkit. With regards to usability and appearance, the desktop has some similarities with GNOME Shell and Mac OS X.

Installation

Pantheon is split into several packages which are available in the AUR. To get a minimal desktop interface, you may start by installing pantheon-session-bzrAUR. This will pull the following core components:

Note: You will need to install at least one indicator, otherwise wingpanel will not launch.

Additionally, you may install the following packages:

Note: You will also need to install plugs, look for "switchboard-plug-*" in the AUR.

Additional Info

Unofficial repository

I have set up an unofficial repository for pantheon packages: http://pkgbuild.com/~alucryd/pantheon/. Add the following lines at the top of your sources in /etc/pacman.conf:

[pantheon]
SigLevel = Optional
Server = http://pkgbuild.com/~alucryd/$repo/$arch

Github repository

All Pantheon related PKGBUILDs can be found on my GitHub repository: https://github.com/alucryd/aur-alucryd/tree/master/pantheon

Packages based on older evolution-data-server

dexter-contacts-bzrAUR and feedler-bzrAUR do not build because they are based on evolution-data-server 3.2. Arch Linux provides version 3.10 which uses a different Vala API.

Launching Pantheon

Via a Display Manager

pantheon-session-bzrAUR provides a session entry for display managers such as gdm or lightdm.

Note: Either use the bzr version of cerbere or add 'gala' to the monitored processes for this to work.

Via .xinitrc

You can also use ~/.xinitrc with slim to launch the Pantheon shell. The following code will successfully launch a Pantheon session:

#!/bin/sh
 
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

gsettings-data-convert &
xdg-user-dirs-gtk-update &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
/usr/lib/gnome-settings-daemon/gnome-settings-daemon &
/usr/lib/gnome-user-share/gnome-user-share &
eval $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK
exec cerbere
Note: Either use the bzr version of cerbere or add 'gala' to the monitored processes for this to work.

Autostart applications

Pantheon, when launched via ~/.xinitrc, does not support XDG autostart. However, there are 3 other ways to achieve this for applications which do not provide a systemd unit:

  • You may add any program to your ~/.xinitrc, preferably right before the exec cerbere line. This is the better choice for one-shot programs.
  • Or you may edit the org.pantheon.cerbere.monitored-processes key using dconf-editor and add the programs of your choice. This method is best for applications which keep running in the background.
  • Or you may use a program like dapperAUR, dex-gitAUR, or fb-autostartAUR to add support for XDG autostart in your ~/.xinitrc.
Note: Keep in mind that applications started via cerbere cannot be terminated, they will keep respawning.

Configuration

Configuring Pantheon is done via switchboard-bzrAUR and its plugs, some of which are available in the AUR, but close to none work as intended for the moment. Instead, most pantheon settings can be altered via dconf, they are located in the org.pantheon key. Use dconf-editor for easy editing.

Also, part of the configuration is handled by gnome-control-center via a dedicated plug, which unfortunately does not support GNOME 3.8. Use gnome-control-center itself and gnome-tweak-tool instead.

Troubleshooting

Gala crashes on start

It appears that unconfigured gala tries to use default gnome wallpaper as a background. However, the corresponding file is absent unless you have gnome-themes-standard installed. Thus, install gnome-themes-standard to workaround the crash. It is safe to remove this package after you configure pantheon in a way you want.