diff options
-rw-r--r-- | Makefile.am | 12 | ||||
-rw-r--r-- | firefox-uccsconfigure.desktop | 14 | ||||
-rw-r--r-- | uccsconfigure-session.in | 3 |
3 files changed, 28 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 708b0bc..efe9e86 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,13 +34,23 @@ session_start_SCRIPTS = \ uccsconfigure-session uccsconfigure-session: uccsconfigure-session.in - @sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ + @sed -e "s|\@pkgdatadir\@|$(pkgdatadir)|" $< > $@ @chmod +x $@ EXTRA_DIST += uccsconfigure-session.in CLEANFILES += uccsconfigure-session ############################### +# Autostart Firefox +############################### + +autostart_filedir = $(pkgdatadir) +autostart_file_DATA = \ + firefox-uccsconfigure.desktop + +EXTRA_DIST = firefox-uccsconfigure.desktop + +############################### # Dist check stuff ############################### diff --git a/firefox-uccsconfigure.desktop b/firefox-uccsconfigure.desktop new file mode 100644 index 0000000..35ad303 --- /dev/null +++ b/firefox-uccsconfigure.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Name=Configure UCCS +Comment=Configure UCCS using the web +Keywords=Internet;WWW;Browser;Web;Explorer +Exec=firefox http://uccs.landscape.canonical.com/ +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=firefox +Categories=GNOME;GTK;Network;WebBrowser; +StartupWMClass=Firefox +StartupNotify=true +X-GNOME-Autostart-Phase=Application diff --git a/uccsconfigure-session.in b/uccsconfigure-session.in index 2f31d59..5186e69 100644 --- a/uccsconfigure-session.in +++ b/uccsconfigure-session.in @@ -1,5 +1,8 @@ #!/bin/bash +# Set up a Firefox autostart +mkdir -p ~/.config/autostart/ +cp @pkgdatadir@/firefox-uccsconfigure.desktop ~/.config/autostart/ # Final thing is to run the standard Unity session gnome-session --session=ubuntu |