Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: third_party/xdg-utils/tests/include/desktop_environment

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 ## This script modified from one supplied by Bryce Harrington at OSDL
4
5 which kde-config >/dev/null 2>&1
6 if [ "$?" -eq 0 ]; then
7 # From Sutoka on FreeNode/#kde
8 kde_version=`kde-config --version | grep KDE | cut -d' ' -f2 2> /dev/nul l`
9 kde_running=$KDE_FULL_SESSION
10 if [ ! -z "$KDE_FULL_SESSION" ]; then
11 running="kde $running"
12 fi
13 echo "kde: $kde_version"
14 else
15 echo "kde: not present (didn't find kde-config)"
16 fi
17
18 # From kees on #osdl
19 which gnome-session >/dev/null 2>&1
20 if [ "$?" -eq 0 ] ; then
21 gnome_version=`gnome-session --version | cut -d ' ' -f3 2>/dev/null`
22 echo "gnome: $gnome_version"
23
24 if [ ! -z "$GNOME_DESKTOP_SESSION_ID" ]; then
25 running="gnome $running"
26 fi
27 else
28 echo "gnome: not present (didn't find gnome-session)"
29 fi
30
31 which xfce4-session >/dev/null 2>&1
32 if [ "$?" -eq 0 ] ; then
33 xfce_version=`xfce4-session --version | grep '(Xfce ' | cut -d '(' -f 2 | cut -d ' ' -f2 | cut -d ')' -f1`
34 # From massonnet on FreeNode/#xfce
35 #if [ `pidof xfce4-session` ]; then
36 if [ "$GDMSESSION" = 'xfce4' ] ; then
37 running="xfce $running"
38 fi
39
40 echo "xfce: $xfce_version"
41 else
42 echo "xfce: not present (didn't find xfce4-session)"
43 fi
44
45 if [ -z "$running" ] ; then
46 running='none'
47 fi
48
49
50 echo "running: $running "
51 if [ `whoami` = 'root' ] ; then
52 echo "user: root"
53 else
54 echo "user: normal"
55 fi
56
OLDNEW
« no previous file with comments | « third_party/xdg-utils/tests/icons/red-template.xcf ('k') | third_party/xdg-utils/tests/include/linux_distro » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698