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

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur »

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.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Sound”