← Back to team overview

openlp-core team mailing list archive

[Bug 1095742] Re: Portable apps storing drive letter in db

 

Answer to #12 (path stored in the service file is still an absolute path
[...] It would probably be better to just strip it when the item is
added to the service)

Why store an absolute path at all? Instead of checking and correcting it
every time a item is added to the service I would store only the
relative path and build the absolute path for runtime use.

In _updateBackgroundAudio the absolute path (os.path.split(bga)[0])
isn't used at all.

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1095742

Title:
  Portable apps storing drive letter in db

Status in OpenLP - Worship Presentation Software:
  New
Status in OpenLP 2.0 series:
  In Progress
Status in OpenLP trunk series:
  New

Bug description:
  From Bob Donkin
  http://forums.openlp.org/discussion/2014/portable-app-assigning-drive-letter-in-sqlite-database

  I am using the portable app version of openlp.  I have linked many songs
  to audio files(mp3). 

  The problem I have is the sqlite database has 
  given an absolute address for the audio file eg:  F:\PortableApps\OpenLPPortable\Data\songs\audio\205\09-I cannot tell.mp3 .

  However
  when I plug in the USB stick at Church the computer assigns it the 
  drive letter E: so none of the audio works.  Would it be possible on the
  next release to use a relative address eg: songs\audio\205\09-I cannot 
  tell.mp3

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1095742/+subscriptions


References