Changes in / [b349e5d:ad34c30]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
README
rb58aada r22be2fa 55 55 CUPS_SERVER=servername cancel [ID|-a] queuename 56 56 57 TODO: 57 BUGS: 58 58 59 - include mixer and channel in debconf, or even better, move it to 60 gutenbach-remctl and implement debconf in that package 61 62 - this should really not conflict with pulse (the biggest problem at 63 the moment is that pulse will spew a bunch of errors like "Home 64 directory /var/spool/cups/tmp not ours." I can't figure out how to 65 get rid of them, but they're really annoying. As long as pulse is 66 in system mode, things seem to work otherwise.) 67 68 - CUPS issues 69 70 * the CUPS daemon processes do not inherit groups from the lp user 71 (so, for example, even if we add 'lp' to 'audio', the process 72 will not be running in group 'audio'). For the time being, I've 73 set the CUPS daemon to always run under group 'audio', but there 74 should really be a better solution. 75 76 * when the Purge-Jobs command is sent, the jobs are removed, but 77 the current mplayer instance continues playing. This 78 unfortunately leads to jobs being played over each other when 79 the CUPS server restarts 80 81 - Making it easier to use across multiple platforms, regardless of 82 debathena/normal linux/etc? 83 84 - Gutenbach should not depend on Debathena -- ideally, 85 gutenbach-server should be debathena free, and then if people want 86 to use zephyr, etc., they can install an additional gutenbach-zephyr 87 package or something 88 89 - add client scripts for the remctl package, something maybe like 90 `gbvol [set|get] number`. Or maybe just leave it with using remctl. 91 92 - fix the web interface 93 94 - Make it possible to play movies; i.e. add video support (the audio 95 support is already there, obviously) 59 Please file bug reports in our Trac instance, located at 60 http://gutenbach.mit.edu/trac -
client/bin/gbrm
r9fdf4a1 r335786f 12 12 13 13 my $q = $ARGV[0]; 14 my $id = $ARGV[1];14 my @ids = @ARGV[1 .. $#ARGV]; 15 15 16 if (!$q or ! $id) {16 if (!$q or !@ids) { 17 17 print $usage; 18 18 exit 1 … … 42 42 } 43 43 my @jobs = $printer->getJobs(0, 0); 44 44 foreach my $id(@ids){ 45 45 if ($id eq "all") { 46 46 foreach $id(@jobs) { … … 57 57 } 58 58 else { 59 cancel_job($id, $printer); 59 foreach my $item(@jobs) { 60 if($item =~ /$id/){ 61 cancel_job($item, $printer); 62 } 63 } 64 } 60 65 } 61 66 … … 67 72 68 73 print "Canceled job '$title' (id $id)\n"; 74 69 75 } -
server/lib/gutenbach
rb58aada r79fac02 116 116 print(ZEPH "Playback aborted.\n"); 117 117 close(ZEPH); 118 119 open(STATUS, ">", "/var/run/gutenbach/status"); 120 print(STATUS ""); 121 close(STATUS); 118 122 die; 119 123 } … … 130 134 my ($newpath); 131 135 136 open(STATUS, ">", "/var/run/gutenbach/status"); 137 132 138 if ($magic) { 133 139 # $magic means that Image::ExifTool was able to identify the type of file 134 140 printf(ZEPHYR "%s file %s\n", $magic, $arguments{"job-title"}); 141 printf(STATUS "%s file %s\n", $magic, $arguments{"job-title"}); 135 142 $status .= sprintf(" Filetype: %s.", $magic); 136 143 $status .= sprintf(" Filename: %s.", $arguments{"job-title"}); … … 138 145 if (exists $fileinfo->{'Title'}) { 139 146 printf(ZEPHYR "\@b{%s}\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 147 #printf(STATUS "%s\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 140 148 $status .= sprintf(" Title: %s.", $fileinfo->{'Title'}); 141 149 } … … 143 151 if (exists $fileinfo->{$key}) { 144 152 printf(ZEPHYR "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 153 printf(STATUS "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 145 154 $status .= sprintf(" %s: %s\n", $key, $fileinfo->{$key}); 146 155 } … … 200 209 201 210 close(ZEPHYR); 211 close(STATUS); 202 212 print CUPS "NOTICE: $status\n"; 203 213 play_mplayer_audio($filepath, \%arguments); … … 329 339 print ZEPHYR "Playback completed successfully.\n"; 330 340 close(ZEPHYR); 341 open(STATUS, ">", "/var/run/gutenbach/status"); 342 print(STATUS ""); 343 close(STATUS); 331 344 } 332 345 close(MP3STATUS) || print ZEPHYR "mplayer exited $?\n";
Note: See TracChangeset
for help on using the changeset viewer.