Ship the startup sound with sugar

This commit is contained in:
Marco Pesenti Gritti
2007-09-24 21:16:06 +02:00
parent 9b68754ba5
commit a8969d776f
4 changed files with 2 additions and 4 deletions
+1
View File
@@ -10,6 +10,7 @@ sugardir = $(pkgdatadir)/data
sugar_DATA = \
activities.defaults \
mime.defaults \
startup.flac \
$(GTKRC_FILES)
GTKRC_FILES = \
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -88,7 +88,7 @@ def _shell_started_cb():
hw_manager = hardwaremanager.get_manager()
hw_manager.set_dcon_freeze(0)
startup_sound = os.path.join(env.get_sounds_path('startup.ogg'))
startup_sound = os.path.join(env.get_data_path('startup.flac'))
if os.path.exists(startup_sound):
player = gst.element_factory_make("playbin", "player")
player.set_property("uri", "file://" + startup_sound)
-3
View File
@@ -73,9 +73,6 @@ def get_user_library_path():
def get_locale_path(path=None):
return _get_prefix_path('share/locale', path)
def get_sounds_path(path=None):
return _get_prefix_path('share/sounds', path)
def get_bin_path(path=None):
return _get_sugar_path('bin', path)