[SOLVED]:fluxbox+foobar+wine:scans home directory, wrong

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read this

[SOLVED]:fluxbox+foobar+wine:scans home directory, wrong

Postby Flemur on Fri Oct 12, 2012 11:34 am

Howdy -

Every time I start foobar (via wine), it apparently scans my home directory, even including the "trash", and lists the media files in the default playlist.

It's not "supposed to", and AFAIK, didn't do so in the past. While it's doing this a small window pops up too quickly to read (looks like it says "scanning", not an error).

The sound "library" is set to two directories in another parition, NOT the home directory.

Any idea how to get foobar to only look for multimedia files in the defined library, and not anywhere else?
Last edited by Flemur on Sun Oct 14, 2012 5:08 pm, edited 1 time in total.
Mint 17/Xfce/fluxbox & Mint 16/Xfce/fluxbox
User avatar
Flemur
Level 5
Level 5
 
Posts: 818
Joined: Mon Aug 20, 2012 9:41 pm

Linux Mint is funded by ads and donations.
 

[solved] fluxbox+foobar+wine:scans home directory, not suppo

Postby Flemur on Sun Oct 14, 2012 4:42 pm

I discovered that fluxbox causes this problem: starting from command line ("foobar") or from thunar "Open WIth foobar" on a file, it works fine; when I start it with a fluxbox key-mapping, it scans the home directory.

Starting from thunar/"Open With" mp3 file:

$ ps -ef | grep foobar
... 2293 1 0 14:26 ? 00:00:00 /bin/sh /home/me/bin/foobar /home/me/Downloads/Bo_Diddley--LV--Old_Smokey.mp3
... 2300 2293 6 14:26 ? 00:00:00 c:\Pgms\foobar2000\foobar2000.exe Z:\home\me\Downloads\Bo_Diddley--LV--Old_Smokey.mp3

Starting from fluxbox (line in file "keys": "87 :Exec foobar":

$ ps -ef | grep foobar
... 2323 1290 0 14:27 ? 00:00:00 /bin/bash -c foobar
... 2328 2323 15 14:27 ? 00:00:00 c:\Pgms\foobar2000\foobar2000.exe Z:\home\me\

So the fluxbox's "Exec foobar" is sticking "Z:\home\me\" on the end of the command, and foobar scans it.

SOLVED:
"foobar" command line or thunar/"Open with":
Code: Select all
 #!/bin/sh
QUICKPARLOCATION="c:\\Pgms\\foobar2000\\foobar2000.exe"
PARAM=`winepath -w "$*"`
wine "$QUICKPARLOCATION" "$PARAM"
exit 0


foobarflux for "Exec foobarflux" from "Keys" file:
Code: Select all
 #!/bin/sh
cd /home/me/.wine/drive_c/Pgms/foobar2000/
wine foobar2000.exe /add "$*"
exit 0


The latter version doesn't pass any arguments to foobar.
Mint 17/Xfce/fluxbox & Mint 16/Xfce/fluxbox
User avatar
Flemur
Level 5
Level 5
 
Posts: 818
Joined: Mon Aug 20, 2012 9:41 pm


Return to Sound, Multimedia, & Codecs

Who is online

Users browsing this forum: DarinB and 5 guests