OpenTTD dies silently when data files are not installed
Bug #388402 reported by
Javier Martin (Habbit)
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openttd (Debian) |
Fix Released
|
Unknown
|
|||
openttd (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: openttd
Ubuntu version: 9.04
Package: openttd 0.6.3-1
Preconditions: package is installed, but additional required data files are not
Expected behavior: a dialog should pop up explaining that the data files are not installed. Optimally, a gksudo or policykit-enabled dialog would prompt the user for its location and install them on the fly.
Actual behavior: if the data files are not installed, OpenTTD dies silently (i.e. there is absolutely no feedback to the user after clicking on the menu item). In order to copy the data files, one has to do so manually, with the additional hurdle of having to copy them into /usr/share/games, i.e. a non-user-writable zone.
Changed in openttd (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
importance: | Low → Medium |
tags: | added: bitesize |
Changed in openttd (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
I propose the following patch, a shell script that would replace "openttd" as the command to be executed by the OpenTTD menu item. It checks that the data and music files have been installed. If they haven't, it offers to install them, automatically using gksudo for the copy and Zenity for the GUI prompts.
- It requires data files to be installed, if a suitable source is not found or the user cancels, the script dies
- Prompts only once for the non-essential music files, if its installation is rejected it does not ask again
Currently it has two main bugs: first, for the sake of asking only once for the data files source directory, it might not check that it contains the music files also before trying to copy them. Second, it's not internationalised. However, I'm in exams right now and this is all I could patch together before returning to my books.