Ship the startup sound with sugar
This commit is contained in:
parent
9b68754ba5
commit
a8969d776f
@ -10,6 +10,7 @@ sugardir = $(pkgdatadir)/data
|
||||
sugar_DATA = \
|
||||
activities.defaults \
|
||||
mime.defaults \
|
||||
startup.flac \
|
||||
$(GTKRC_FILES)
|
||||
|
||||
GTKRC_FILES = \
|
||||
|
BIN
data/startup.flac
Normal file
BIN
data/startup.flac
Normal file
Binary file not shown.
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user