Search in project directory for files before installation directory

View: New views
7 Messages — Rating Filter:   Alert me  

Search in project directory for files before installation directory

by Nikos Chantziaras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It would be better if files (samples, presets, soundfonts, etc) were
looked for in the project directory first, and if not found then in the
usual place (like /usr/share/lmms/samples).  This would allow us to
package our LMMS projects and use them on another machine or send them
to another person.

For this to be feasible, the full path of the files should not be stored
if that file is detected to reside in the same directory as the *.mmpz
file.  This again would mean that LMMS should ask for a filename right
at project creation.

Does this sound like a good idea?  Currently, people have to go track by
track and reload the samples/presets/etc of every track when I send them
my project.  I suppose the problem gets more severe when you send a
project created in Linux to a Windows user; there not even the default
shipped files can be found (/usr/share vs C:\Program Files).

I could probably try to code this myself if you people think that would
be a nice addition.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by William Lahti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Nikos!

On Tue, Oct 13, 2009 at 6:09 PM, Nikos Chantziaras <realnc@...> wrote:
For this to be feasible, the full path of the files should not be stored
if that file is detected to reside in the same directory as the *.mmpz
file.  This again would mean that LMMS should ask for a filename right
at project creation.

It looks like LMMS doesn't store absolute paths by default anyway, at least according to my quick look at a simple mmp file. Are the samples in some path that LMMS knows about (and thus can scan when you reopen a file)?
 
Does this sound like a good idea?  Currently, people have to go track by
track and reload the samples/presets/etc of every track when I send them
my project.  I suppose the problem gets more severe when you send a
project created in Linux to a Windows user; there not even the default
shipped files can be found (/usr/share vs C:\Program Files).

Really. That doesn't seem right based on what I'm seeing. I tested on LMMS 0.4.2 from ubuntu which is pretty old. I tried adding the sample via the library as well as the file browser view to /usr/share/lmms and both times I got a relative path name, which seems to indicate LMMS figured out that the sample was in the library.

As for the feature itself, I would agree that it's a good idea. Maybe there are some caveats though. This could also be accomplished by supporting zip files, either with a new export plugin or as a real save format or some combination.

I could probably try to code this myself if you people think that would
be a nice addition.
 
I have a feeling the devs would agree :-) Make sure you have a recent version-- could've been fixed at some point.

--
rezonant

long name: William Lahti
handle :: rezonant
freenode :: xfury
blog :: http://xfurious.blogspot.com/
site :: http://komodocorp.com/~wilahti

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by Nikos Chantziaras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/14/2009 02:18 AM, William Lahti wrote:

> Hello Nikos!
>
> On Tue, Oct 13, 2009 at 6:09 PM, Nikos Chantziaras <realnc@...
> <mailto:realnc@...>> wrote:
>
>     For this to be feasible, the full path of the files should not be stored
>     if that file is detected to reside in the same directory as the *.mmpz
>     file.  This again would mean that LMMS should ask for a filename right
>     at project creation.
>
>
> It looks like LMMS doesn't store absolute paths by default anyway, at
> least according to my quick look at a simple mmp file. Are the samples
> in some path that LMMS knows about (and thus can scan when you reopen a
> file)?

Hmm, you are right.  My mistake.


> As for the feature itself, I would agree that it's a good idea. Maybe
> there are some caveats though. This could also be accomplished by
> supporting zip files, either with a new export plugin or as a real save
> format or some combination.
>
>     I could probably try to code this myself if you people think that would
>     be a nice addition.
>
> I have a feeling the devs would agree :-) Make sure you have a recent
> version-- could've been fixed at some point.

I always use the Git sources :)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by Andy Kelley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nikos,

When Tobias finishes the resources framework, this problem might very well go away. I suggest sit tight and then see if you need to address this problem after the new resources framework is done.

Andy

On Tue, Oct 13, 2009 at 4:28 PM, Nikos Chantziaras <realnc@...> wrote:
On 10/14/2009 02:18 AM, William Lahti wrote:
> Hello Nikos!
>
> On Tue, Oct 13, 2009 at 6:09 PM, Nikos Chantziaras <realnc@...
> <mailto:realnc@...>> wrote:
>
>     For this to be feasible, the full path of the files should not be stored
>     if that file is detected to reside in the same directory as the *.mmpz
>     file.  This again would mean that LMMS should ask for a filename right
>     at project creation.
>
>
> It looks like LMMS doesn't store absolute paths by default anyway, at
> least according to my quick look at a simple mmp file. Are the samples
> in some path that LMMS knows about (and thus can scan when you reopen a
> file)?

Hmm, you are right.  My mistake.


> As for the feature itself, I would agree that it's a good idea. Maybe
> there are some caveats though. This could also be accomplished by
> supporting zip files, either with a new export plugin or as a real save
> format or some combination.
>
>     I could probably try to code this myself if you people think that would
>     be a nice addition.
>
> I have a feeling the devs would agree :-) Make sure you have a recent
> version-- could've been fixed at some point.

I always use the Git sources :)

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel



--
Andy Kelley
Nuclear Development
http://nucleardev.com/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by Paul Giblock-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, this is all quite moot.  In the future, all resources are
referred to by a hash-code.  Also, the new zip-based file format will
allow bundling resources as well as referencing resources stored
remotely (like on LSP).

-Paul

On Tue, Oct 13, 2009 at 8:59 PM, Andy Kelley <superjoe30@...> wrote:
> Nikos,
>
> When Tobias finishes the resources framework, this problem might very well
> go away. I suggest sit tight and then see if you need to address this
> problem after the new resources framework is done.
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by William Lahti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 14, 2009 at 12:04 PM, Paul Giblock <drfaygo@...> wrote:
Yes, this is all quite moot.  In the future, all resources are
referred to by a hash-code.  

Nniiccee!

--
rezonant

long name: William Lahti
handle :: rezonant
freenode :: xfury
blog :: http://xfurious.blogspot.com/
site :: http://komodocorp.com/~wilahti

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Re: Search in project directory for files before installation directory

by Nikos Chantziaras :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/14/2009 07:04 PM, Paul Giblock wrote:
> Yes, this is all quite moot.  In the future, all resources are
> referred to by a hash-code.  Also, the new zip-based file format will
> allow bundling resources as well as referencing resources stored
> remotely (like on LSP).

Good news.  Nice to see this is being worked on :)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
LMMS-devel mailing list
LMMS-devel@...
https://lists.sourceforge.net/lists/listinfo/lmms-devel