~ubuntu-branches/ubuntu/karmic/qemu-launcher/karmic

« back to all changes in this revision

Viewing changes to qemu-launcher.pl

  • Committer: Bazaar Package Importer
  • Author(s): Linas Žvirblis
  • Date: 2006-12-27 02:13:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061227021314-3heebzuma9pn89qq
Tags: 1.7.3-1
* New upstream maintenance release.
* Acceleration options are only enabled for x86 and x86-64 targets.
  This fixes most technical issues, and slightly confusing behavior of
  the emulator is now documented in README.Debian. (Closes: #399520)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
# Application name and version
46
46
my $application_name = gettext('Qemu Launcher');
47
 
my $version = '1.7.2';
 
47
my $version = '1.7.3';
48
48
 
49
49
# Configuration directory, file, and name for default settings
50
50
my $conf_dir = $ENV{'HOME'}.'/.qemu-launcher';
1238
1238
                push @qcmd_parts, '-localtime';
1239
1239
        }
1240
1240
 
1241
 
        if ( $config->{'audio'} and $gladexml->get_widget('audiocheckbutton')->
1242
 
                sensitive() )
 
1241
        if (
 
1242
                $config->{'audio'} and 
 
1243
                (
 
1244
                        ( $config->{'systype'} eq 'x86' ) or
 
1245
                        ( $config->{'systype'} eq 'x86_64' ) or
 
1246
                        ( $config->{'systype'} eq 'x86-64' ) or
 
1247
                        ( $config->{'systype'} eq 'ppc' ) or
 
1248
                        ( $config->{'systype'} eq 'ppc64' )
 
1249
                )
 
1250
        )
1243
1251
        {
1244
1252
                push @qcmd_parts, '-soundhw';
1245
1253
                push @qcmd_parts, $config->{'sndtype'};
1288
1296
                push @qcmd_parts, join( ',', ($config->{'logthese'}) );
1289
1297
        }
1290
1298
 
1291
 
        if ( $config->{'acceleration'} eq 'disable' )
 
1299
        if (
 
1300
                ( $config->{'acceleration'} eq 'disable' ) and
 
1301
                (
 
1302
                        ( $config->{'systype'} eq 'x86' ) or
 
1303
                        ( $config->{'systype'} eq 'x86-64' ) or
 
1304
                        ( $config->{'systype'} eq 'x86_64' )
 
1305
                )
 
1306
        )
1292
1307
        {
1293
1308
                push @qcmd_parts, '-no-kqemu';
1294
1309
        }
1295
 
        elsif ( $config->{'acceleration'} eq 'full' )
 
1310
        elsif (
 
1311
                ( $config->{'acceleration'} eq 'full' ) and
 
1312
                (
 
1313
                        ( $config->{'systype'} eq 'x86' ) or
 
1314
                        ( $config->{'systype'} eq 'x86-64' ) or
 
1315
                        ( $config->{'systype'} eq 'x86_64' )
 
1316
                )
 
1317
        )
1296
1318
        {
1297
1319
                push @qcmd_parts, '-kernel-kqemu';
1298
1320
        }
2404
2426
        {
2405
2427
                $gladexml->get_widget('gfxvgaradiobutton')->set_sensitive($state1);
2406
2428
                $gladexml->get_widget('gfxpciradiobutton')->set_sensitive($state1);
 
2429
 
 
2430
                $gladexml->get_widget('acceloffradiobutton')->set_sensitive(1);
 
2431
                $gladexml->get_widget('accelonradiobutton')->set_sensitive(1);
 
2432
                $gladexml->get_widget('accelfullradiobutton')->set_sensitive(1);
2407
2433
        }
2408
2434
        else
2409
2435
        {
2410
2436
                $gladexml->get_widget('gfxvgaradiobutton')->set_sensitive(0);
2411
2437
                $gladexml->get_widget('gfxpciradiobutton')->set_sensitive(0);
 
2438
 
 
2439
                $gladexml->get_widget('acceloffradiobutton')->set_sensitive(0);
 
2440
                $gladexml->get_widget('accelonradiobutton')->set_sensitive(0);
 
2441
                $gladexml->get_widget('accelfullradiobutton')->set_sensitive(0);
2412
2442
        }
2413
2443
});
2414
2444