Cave story+ crashes on load

Bug #1111150 reported by John Larsen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Drawers
In Progress
Medium
Unassigned

Bug Description

When I try to start the game Cave Story+ with the launcher in a drawer, the game crashes on startup.
However the game starts correctly with the launcher, if the launcher is not in a drawer.

Some of the other games in the drawer starts correctly as well.

I attached the drawer .desktop file

Also thank you for the hard work! I like the approach :)

Revision history for this message
John Larsen (dmessiahpchan) wrote :
description: updated
Revision history for this message
icb410 (ian-berke) wrote :

Hi John,

From the .desktop file, I can't see what might be the problem... I made a simple bash script and put it in the same directory with the same name and it ran fine using your .desktop. if you run the following from a terminal (or using Alt-F2) does cavestory load?

/opt/cave-story-plus/CaveStory+

Can you also look at the .desktop file for Cave Story and see what the exec line actually is (also check if it says Terminal=True though the most recent version of drawers should recognize and alter the exec line for that)? Maybe there's something unique about that exec line that gets mangled when I import it.

Finally, you can also run drawers from a terminal with the debug flag (-d) turned on:

/opt/extras.ubuntu.com/drawers/bin/drawers -d -f ~/.local/share/applications/Game.desktop

Best,
Ian

Revision history for this message
John Larsen (dmessiahpchan) wrote :

Hi Ian

Running
/opt/cave-story-plus/CaveStory+
from the terminal only works when I first navigate to
/opt/cave-story-plus
as it otherwise fails to find necessary files (pictures and some other game assets). The same error is written when I run drawers from the terminal like you suggested.

Indeed the original launcher contains the line
Path=/opt/cave-story-plus/
which are necessary for the launcher to work.

I tried to add the line to the Game.desktop by manually opening the file and using the button in the drawers preferences but it does not seem to have an effect.

best regards
John

Revision history for this message
John Larsen (dmessiahpchan) wrote :

btw I changed the Cave Story Plus entry like this, notice the new 'Path' line.

[Desktop Action Cave Story Plus]
Name=Cave Story Plus
Exec=/opt/cave-story-plus/CaveStory+
OnlyShowIn=Unity
Actions=0
Path=/opt/cave-story-plus/
Type=application
Icon=cave-story-plus

Revision history for this message
icb410 (ian-berke) wrote : Re: [Bug 1111150] Re: Cave story+ crashes on load

Indeed... This is not implemented in drawers yet. I will work on a patch
for this case. May take a little bit though as I am away.

Best,
Ian

---sent on the go....
On Jan 31, 2013 8:20 PM, "John Larsen" <email address hidden> wrote:

> Hi Ian
>
> Running
> /opt/cave-story-plus/CaveStory+
> from the terminal only works when I first navigate to
> /opt/cave-story-plus
> as it otherwise fails to find necessary files (pictures and some other
> game assets). The same error is written when I run drawers from the
> terminal like you suggested.
>
> Indeed the original launcher contains the line
> Path=/opt/cave-story-plus/
> which are necessary for the launcher to work.
>
> I tried to add the line to the Game.desktop by manually opening the file
> and using the button in the drawers preferences but it does not seem to
> have an effect.
>
> best regards
> John
>
> --
> You received this bug notification because you are subscribed to
> Drawers.
> https://bugs.launchpad.net/bugs/1111150
>
> Title:
> Cave story+ crashes on load
>
> Status in Drawers: Organize the Unity Launcher:
> New
>
> Bug description:
> When I try to start the game Cave Story+ with the launcher in a drawer,
> the game crashes on startup.
> However the game starts correctly with the launcher, if the launcher is
> not in a drawer.
>
> Some of the other games in the drawer starts correctly as well.
>
> I attached the drawer .desktop file
>
> Also thank you for the hard work! I like the approach :)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/drawers/+bug/1111150/+subscriptions
>

Revision history for this message
John Larsen (dmessiahpchan) wrote :

Awesome thank you!
I can still launch it from the dash but I look forward to your patch.

Extending support of the .desktop standard key by key :)

Revision history for this message
icb410 (ian-berke) wrote :

Had a little bit of time tonight before bed... Here is a patch that should fix the problem. Applyit as follows, then delete the CaveStory+ item from drawer and re-add it.

sudo patch -p0 < path1.patch

Let me know if it works for you.

Best,
Ian

Changed in drawers:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
John Larsen (dmessiahpchan) wrote :

That did it :)

Nice job and thank you!

Will recommend drawers to other Ubuntu users.

best regards
John

Revision history for this message
John Larsen (dmessiahpchan) wrote :

Hi Ian

Sorry, I was a little fast.
It still fails if I start CaveStory+ from the quicklist (that's the name of the right-click menu on the launcher icon right?).

best regards
John

Revision history for this message
icb410 (ian-berke) wrote :

Hmph... Not sure about this. I posted a question on askubuntu.com to see if I get a quick answer (http://askubuntu.com/questions/250271/how-to-have-quicklist-item-launch-in-a-path). If not, I may have to file a bug report with Unity people.

Revision history for this message
John Larsen (dmessiahpchan) wrote :

Hi Ian

I took the liberty of submitting some additional details to your question on what happens when I try to launch the game from the Quicklist.
I hope it is ok with you :)

Feel free to edit it in any way you feel appropriate.

best regards
John

Revision history for this message
icb410 (ian-berke) wrote :

Additional details are always fine, but unfortunately I didn't see them. I
did get a notification about pending changes, but nothing showed up when I
chose it. I added a test script and .desktop file instead (agnostic of
drawers).

On Fri, Feb 1, 2013 at 11:40 AM, John Larsen <email address hidden>wrote:

> Hi Ian
>
> I took the liberty of submitting some additional details to your question
> on what happens when I try to launch the game from the Quicklist.
> I hope it is ok with you :)
>
> Feel free to edit it in any way you feel appropriate.
>
> best regards
> John
>
> --
> You received this bug notification because you are subscribed to
> Drawers.
> https://bugs.launchpad.net/bugs/1111150
>
> Title:
> Cave story+ crashes on load
>
> Status in Drawers: Organize the Unity Launcher:
> In Progress
>
> Bug description:
> When I try to start the game Cave Story+ with the launcher in a drawer,
> the game crashes on startup.
> However the game starts correctly with the launcher, if the launcher is
> not in a drawer.
>
> Some of the other games in the drawer starts correctly as well.
>
> I attached the drawer .desktop file
>
> Also thank you for the hard work! I like the approach :)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/drawers/+bug/1111150/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.