The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Help me make this into an icon on the Desktop

    Discussion in 'Linux Compatibility and Software' started by joeelmex, Jun 21, 2009.

  1. joeelmex

    joeelmex Notebook Evangelist

    Reputations:
    229
    Messages:
    518
    Likes Received:
    1
    Trophy Points:
    31
    With playing Alien Arena I have to go to the terminal, go to dir where the game is at and type ./crx to play the game. I am trying to make a icon on the desktop for it to work. So far everything I have tried does not work. I can double click on the crx file in nautil and it works from there. Somewhere when i copy it of to the desktop it stops.

    This is Ubuntu 9.04 64 bit.

    Thanks for any advice
     
  2. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    There are a variety of ways you could do this. The simplest would be to make a shell script. Make a text file, call it AlienArena.sh and put something like this inside it:
    Code:
    #!/bin/bash
    
    [B]/path/to/game/dir/crx[/B]
    
    Then give the AlienArena.sh executable permission:
    Code:
    $ chmod +x AlienArena.sh
    
    That will simply call up crx the same way you would in the terminal, and it will act the same way no matter where you put it.

    You could also customize a .desktop file with an icon and such. It'll look prettier, but it's slightly more complicated. A .desktop is essentially a text file with variable definitions, such as this:
    Code:
    [Desktop Entry]
    Name=Alien Arena 2009
    Comment=First Person Shooter
    [B]Exec=/path/to/game/dir/crx
    Icon=/path/to/alien/icon[/B]
    Terminal=false
    Type=Application
    NoDisplay=true
    Encoding=UTF-8
    StartupNotify=true
    
     
  3. joeelmex

    joeelmex Notebook Evangelist

    Reputations:
    229
    Messages:
    518
    Likes Received:
    1
    Trophy Points:
    31
    WoW I would have never figured that out on my own ! Thanks
    I can see why people just run things from the terminal

    LOL
     
  4. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    You're welcome. All you need to do is change the bolded text in the files above and you're good to go. It'll save you time in the long run. You only have this problem because you installed it yourself. The official packages should install the .desktop to /usr/applications automatically.
     
  5. joeelmex

    joeelmex Notebook Evangelist

    Reputations:
    229
    Messages:
    518
    Likes Received:
    1
    Trophy Points:
    31
    Hey help me what I have wrong with this Desktop Entry for Doom3; Right now it will look like it will load up and then does nothing. This is ubuntu 64..

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Doom3
    GenericName=Doom3
    Comment=FPS 
    Exec=/home/joeelmex/Games/Doom3/doom3
    Terminal=True
    StartupNotify=true
    MultipleArgs=true
    Type=Application
    Categories=Games
    I also added the chmod +x to doom3 file thinking that could be it but still no luck. Thanks for any help
     
  6. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    Try taking out the Terminal=True line.