Cardbox on the Eee: 3 – starting Cardbox

When you have installed Cardbox on Wine,  there seems to be no easy way of finding the program so that you can actually use it. Here are some suggestions; but if anyone has a better way of integrating a Cardbox launch into the Linux user interface, please let me know! CrossOver Linux does it perfectly, and whatever CrossOver can do, Wine should be able to do too.

You can type a command to start Cardbox, or you can put a Cardbox icon on the Eee desktop so that you can start Cardbox with a single mouse click.

Typing a command

If you open a terminal window (for instance, on the Eee, you can press Ctrl+Alt+T), the following command line will start Cardbox:

/usr/bin/wine /home/user/.wine/drive_c/Program\ Files/Cardbox\ 3.0/cardbox3.exe

assuming that the locations into which Wine was installed are the same as they were when I tried it on my Asus Eee.

After Cardbox has finished, the terminal window may still be sitting there with a lot of Wine messages in it and not even a command prompt. You can simply close it, or if you want to do more work in that window, pressing Ctrl+C will get you a command prompt.

Integrating with the Eee simple interface

This involves some scary editing of a system file, but the end result is a simple Cardbox icon on the “Work” page of the Eee’s desktop.

Downloading the icons

First of all you need to download the following Cardbox icons. The first one will become the Cardbox icon on the desktop; the next four control the way the Cardbox icon will appear when you select it with the keyboard or mouse: there are four of them because the Eee has four different desktop modes.





Right-click on each icon in turn and tell Firefox to save it in your user directory (whose Linux name is /home/user). The exact location isn’t vital but it will be embarrassing if you save the icons and then can’t work out where they are!

Putting the icons in the right place

Now open a terminal window by pressing Ctrl+Alt+T. You will automatically find yourself in /home/user. Type the following command:

sudo cp -iv *cardbox*.png /opt/xandros/share/AsusLauncher/

This will copy the icon files to the correct directory.

Telling the system to display the Cardbox icon

Now you have the icon files in the right place, you need to tell the system to display an icon, and tell it what to do if the user clicks on the icon.

Note: when your Asus system installs a new package, it may restore its system files to the original state, in which case you will need to repeat this step in order to get your Cardbox icon back.

Right-click on this link and save the resultant text file into your user directory. Its name will be cardboxui.txt, and these instructions assume that its full name (including the user directory name) is therefore /home/user/cardboxui.txt.

Warning: you are about to edit a system file. If you get this wrong then your desktop may look a mess or not display at all. Double-check every step you take. If you have any doubts, DO NOT SAVE YOUR CHANGES: just close the terminal window.

Open a terminal window with Ctrl+Alt+T (or simply reuse one, if you already have it open) and enter the following command:

sudo nano /opt/xandros/share/AsusLauncher/simpleui.rc

Hold down Ctrl+V to scroll through the pages, until you get to the bottom of the screen. Then press the up arrow until the solid white cursor is on the “<” symbol in the line that says </simpleui> (if there is a blank line between </simpleui> and the preceding </parcel> line, you can also put the cursor there: it makes no difference).

Press Ctrl+R once. You will be asked to enter the name of a file to insert. Assuming that you have saved the text file in the right place, the filename will be:

/home/user/cardboxui.txt

Press the Enter key after typing the filename, and you should find that a new group of lines has appeared, mentioning Cardbox:

SimpleUI

Press Ctrl+X to exit the editor. Press Y to say that yes, you do want to save the edited file. Finally press Enter to confirm the filename.

Viewing the desktop with the new icon

Shut down and restart the Eee in the usual way, and you should see a Cardbox icon on the Work page of your desktop. Clicking on the icon will start Cardbox.

(This forum entry said that you could press Ctrl+Alt+Backspace to redisplay the desktop without affecting anything else. It didn’t work for me – it just restarted the whole computer.)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: