Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sound.py
diff options
context:
space:
mode:
Diffstat (limited to 'sound.py')
-rw-r--r--sound.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound.py b/sound.py
index 863595d..7beb9e8 100644
--- a/sound.py
+++ b/sound.py
@@ -15,6 +15,7 @@
import os
import gtk
import gst
+import shutil
from glob import glob
from gettext import gettext as _
@@ -97,9 +98,9 @@ class RestoredSound(Sound):
class JournalSound(Sound):
def __init__(self, jobject):
soundfile = os.path.join(theme.SESSION_PATH, jobject.object_id)
- Sound.__init__(self, jobject.props.metadata['title'],
+ Sound.__init__(self, jobject.metadata['title'],
jobject.object_id, soundfile, theme.SOUND_CUSTOM)
- os.rename(jobject.file_path, soundfile)
+ shutil.copy(jobject.file_path, soundfile)
THEMES = [
PreinstalledSound(_('Gobble'), 'sounds/gobble.wav'),