Permalink
Browse files

[lightdm-remote-session-uccsconfigure] Allow the use of either Chromi…

…um or Google Chrome to configure the remote sessions
  • Loading branch information...
chenxiaolong committed Jan 11, 2013
1 parent 6b2b206 commit 2842a7b463c1b532a138973340b5fd476ca642bb
@@ -1,12 +1,18 @@
Firefox currently does not start for some reason if
firefox-extension-websites-integration is installed.
diff -Nru lightdm-remote-session-uccsconfigure-1.1.orig/firefox-uccsconfigure.sh lightdm-remote-session-uccsconfigure-1.1/firefox-uccsconfigure.sh
---- lightdm-remote-session-uccsconfigure-1.1.orig/firefox-uccsconfigure.sh 2013-01-08 09:37:58.860678225 -0500
-+++ lightdm-remote-session-uccsconfigure-1.1/firefox-uccsconfigure.sh 2013-01-08 09:38:21.520558664 -0500
-@@ -1,4 +1,5 @@
+--- lightdm-remote-session-uccsconfigure-1.1.orig/firefox-uccsconfigure.sh 2013-01-11 15:52:11.745242000 -0500
++++ lightdm-remote-session-uccsconfigure-1.1/firefox-uccsconfigure.sh 2013-01-11 15:57:23.258259000 -0500
+@@ -1,4 +1,11 @@
#!/bin/sh
-firefox -no-remote https://uccs.landscape.canonical.com/
+#firefox -no-remote https://uccs.landscape.canonical.com/
-+chromium --incognito https://uccs.landscape.canonical.com/
++if [ -x /usr/bin/google-chrome ]; then
++ google-chrome --incognito https://uccs.landscape.canonical.com/
++elif [ -x /usr/bin/chromium ]; then
++ chromium --incognito https://uccs.landscape.canonical.com/
++else
++ zenity --warning --text "Please install Chromium or Google Chrome to configure the LightDM remote sessions.\n\nClick OK to log out."
++fi
gnome-session-quit --logout --no-prompt
@@ -8,13 +8,15 @@ arch=('i686' 'x86_64')
url="https://launchpad.net/lightdm-remote-session-uccsconfigure"
license=('GPL')
groups=('unity-extra')
-depends=('lightdm-ubuntu' 'unity' 'chromium')
+depends=('lightdm-ubuntu' 'unity' 'zenity')
+optdepends=('chromium: To configure the remote sessions'
+ 'google-chrome: To configure the remote sessions')
source=("https://launchpad.net/lightdm-remote-session-uccsconfigure/1.0/${pkgver}/+download/lightdm-remote-session-uccsconfigure-${pkgver}.tar.gz"
'0001_PAM_include.patch'
'0002_Use_chromium.patch')
sha512sums=('ed5d8fb76314f1bae784cdf05be7cb24a255b446a54461ca94664a67606317e2318f760bffdd943fa098a7ed9c68f9d12caeb48bafd7e6760244d872797a0412'
'e091ffd310a868bcb919dd5e2aef5cdf65b569c4536690eb962a2c1d5ea167173a1a3c69b7da9551092a5faef6fc8e3c9c39e36cd5942c7e560096f76e3e252b'
- '09518141ddc7d00cd1c0839070c58bc94ebb7846ccc081daa42731958ee3ffb869fd3b8c9fcd246f1ab456bffa97c2fd0c399d5fd986a34a0fb6bd4552b04b96')
+ 'e2455b7134b62a8ae61618c39fa4cbe82c040c405f766b26455c503f13cfb33b7d323e85dd9304ca76bd6137a64b8cd2cad0d78f9d76247d03de9c47e7ad9d8f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"

0 comments on commit 2842a7b

Please sign in to comment.