diff options
author | Ted Gould <ted@gould.cx> | 2012-08-21 22:10:47 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-21 22:10:47 -0500 |
commit | 076a20d41f315a9df353778b0f9667e7730ad314 (patch) | |
tree | ba44680a17e375acbf6c7b5b5afe17e93f0f1947 | |
parent | c913f062187752d8ecb64b264ccbbe592c10ffda (diff) | |
download | lightdm-remote-session-remoteconfigure-076a20d41f315a9df353778b0f9667e7730ad314.tar.gz lightdm-remote-session-remoteconfigure-076a20d41f315a9df353778b0f9667e7730ad314.tar.bz2 lightdm-remote-session-remoteconfigure-076a20d41f315a9df353778b0f9667e7730ad314.zip |
Adding a desktop file to auto start firefox
-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 |