GNOME Bugzilla – Bug 547725
Banshee's first run from the menu icon doesn't start
Last modified: 2008-08-31 20:32:00 UTC
Steps to reproduce: 1. Click on Applications->Sound and Video->Banshee Media Player 2. There is no response (The bash script /usr/bin/banshee-1 dies) Stack trace: Other information: banshee-1.desktop executes Banshee with --redirect-log. This directs the log in the Bash script itself, to ~/.config/banshee-1/log. However, during the first run, ~/.config/banshee-1 doesn't exist, and hence redirection fails and Banshee doesn't start. I've produced a patch which I'll attach shortly.
Created attachment 116552 [details] [review] Adds a mkdir -p $HOME/.config/banshee-1 on first start.
Comment on attachment 116552 [details] [review] Adds a mkdir -p $HOME/.config/banshee-1 on first start. Index: src/Clients/banshee-1.in =================================================================== --- src/Clients/banshee-1.in (revision 4367) +++ src/Clients/banshee-1.in (working copy) @@ -42,6 +42,7 @@ if [ -z "$BANSHEE_REDIRECT_LOG" ]; then exec $exec_args else + mkdir -p $`dirname $BANSHEE_REDIRECT_LOG` exec $exec_args &> $BANSHEE_REDIRECT_LOG fi
Created attachment 116553 [details] [review] A better approach to the issue.
Created attachment 116556 [details] [review] Add quotes
Looks good to me, but I'm no bash guru.
Committed, thanks!
*** Bug 550097 has been marked as a duplicate of this bug. ***