abc-mikey / xgamer

Automatically exported from code.google.com/p/xgamer
0 stars 0 forks source link

xgamer doesn't launch on gnome/generic desktop - see fix inside #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a Gnome session
2. Start a Terminal session
2.  Launch 'xgamer -c etracer'

What is the expected output? 
Clean game start.

What do you see instead?

Lots of error messages.

What version of the product are you using? On what operating system?

0.3 on Ubuntu 11.04

Please provide any additional information below.

The desktop_environment is wrong in the non-KDE case.

# return the current desktop environment that xgamer is launched from a non-KDE 
session. Please change desktop_environment like so:

sub desktop_environment  {
        my $de = "GENERIC";
        if( defined($ENV{KDE_FULL_SESSION}) and ($ENV{KDE_FULL_SESSION} eq "true")) {
                $de="KDE-$ENV{KDE_SESSION_VERSION}";
        } elsif(defined($ENV{DESKTOP_SESSION}) and ($ENV{DESKTOP_SESSION} =~ /gnome/)) {
                $de="GNOME";
        } else {
                my $OUT=qx(xprop -root _DT_SAVE_MODE);
                if($OUT =~ m/xfce/) {
                        $de="XFCE";
                }
        }
        return $de;
}

Original issue reported on code.google.com by michaelr...@gmail.com on 15 May 2011 at 11:42

GoogleCodeExporter commented 9 years ago
Thanks for the report, sorry about the long wait. I take what you have said 
about DEs as correct but this shouldn't have been the issue as it was only a 
hack to try and guess the wallpaper for a specific desktop. I've done a fairly 
large rewrite for version 0.6.2 but I've taken out this code as it was an 
obvious hack, and you can easily specify your own wallpaper. 
I may consider putting it back in based on your contribution. If you are still 
interested in xgamer then you could try the new version and report a new bug if 
you're still experiencing problems.  

Original comment by abc.mi...@gmail.com on 22 Sep 2012 at 10:32