~ubuntu-branches/debian/stretch/epoptes/stretch

« back to all changes in this revision

Viewing changes to epoptes-client/execute

  • Committer: Package Import Robot
  • Author(s): Vagrant Cascadian, Alkis Georgopoulos, Vagrant Cascadian
  • Date: 2012-03-04 13:58:00 UTC
  • mfrom: (1.2.1) (6.1.1 precise)
  • Revision ID: package-import@ubuntu.com-20120304135800-9ou11fsepopebkiw
Tags: 0.4.4-1
[ Alkis Georgopoulos ]
* screenshot: exit cleanly when X isn't available.
* Handle late connectionLost events better.
* Replace the View menu with the Labels menu.
* Ability to show real names instead of usernames.
* Don't use epoptes-client.init on LTSP 5.3.
* Get the active display when executing root commands.
* Remember more user settings (labels, history).
* Don't hang on close, on Ubuntu 12.04.
* Mark epoptes as the owner of /etc/epoptes (Closes: #661083).
* Extract shell code from python scripts for maintainability.
* Don't crash when clients with a bad certificate connect (LP: #940114).
* Add Spanish and Swedish translations.
  Many thanks to the translators!

[ Vagrant Cascadian ]
* Update Standards-Version to 3.9.3, no changes necessary. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh +m
2
 
 
3
 
###########################################################################
4
 
# Runs a command in the background without waiting for any output.
5
 
# Prints the pid of the command in stdout.
6
 
#
7
 
# Copyright (C) 2011 Alkis Georgopoulos <alkisg@gmail.com>
8
 
#
9
 
# This program is free software: you can redistribute it and/or modify
10
 
# it under the terms of the GNU General Public License as published by
11
 
# the Free Software Foundation, either version 3 of the License, or
12
 
# (at your option) any later version.
13
 
#
14
 
# This program is distributed in the hope that it will be useful,
15
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
# GNU General Public License for more details.
18
 
#
19
 
# You should have received a copy of the GNU General Public License
20
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 
#
22
 
# On Debian GNU/Linux systems, the complete text of the GNU General
23
 
# Public License can be found in `/usr/share/common-licenses/GPL'.
24
 
###########################################################################
25
 
 
26
 
case $# in
27
 
    0)
28
 
        echo "Usage: $0 <command, file or URL>" >&2
29
 
        exit 1
30
 
        ;;
31
 
    1) # If there's only one parameter, it might be a file or URL
32
 
        which -- "$1" >/dev/null || set "xdg-open" "$1"
33
 
        ;;
34
 
esac
35
 
 
36
 
# Do some logging, either in ~/.xsession-errors or on the console.
37
 
echo "$(LANG=C date '+%c'), epoptes-client executing: $@" >&2
38
 
 
39
 
# The command is ran with stdin and stdout descriptors redirected to /dev/null,
40
 
# so that it doesn't interfere with the output of other commands.
41
 
# stderr isn't changed, i.e. ~/.xsession-errors will be used.
42
 
"$@" 0</dev/null >/dev/null &
43
 
 
44
 
# Print the pid.
45
 
echo $!