Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dont install ~/.asoundrc if pulseaudio is not available
  • Loading branch information
falkTX committed Sep 3, 2018
1 parent 4fbd193 commit 45795f9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions welcome/welcome.py
Expand Up @@ -66,7 +66,7 @@
"config/rosegardenmusic/Rosegarden.conf",
"config/smplayer/smplayer.ini",
"config/vlc/vlcrc",

"config/baloofilerc",
"config/dolphinrc",
"config/kded5rc",
Expand All @@ -85,9 +85,9 @@
"config/autostart/kaddressbookmigrator.desktop",
"config/autostart/nepomukserver.desktop",
"config/autostart/org.kde.kmix.desktop",

"kde/share/config/nepomukserverrc",

"local/share/kxmlgui5/dolphin/dolphinui.rc",
)

Expand All @@ -106,7 +106,7 @@
"config/rncbc.org/Qsynth.conf",
"config/rncbc.org/Qtractor.conf",
"config/rosegardenmusic/Rosegarden.conf",

"config/breezerc",
"config/gtkrc",
"config/gtkrc-2.0",
Expand Down Expand Up @@ -145,6 +145,8 @@ def do_copy_all():
for sfile in CONFIG_ALL:
create_folder_for_file(sfile)
os.system("cp '%s/%s' '%s/.%s'" % (CONFIG_DIR, sfile, HOME, sfile))
if not os.path.exists("/usr/bin/pulseaudio"):
os.remove("%s/.asoundrc" % (HOME,))

def do_copy_basic():
for sfile in CONFIG_SMALL:
Expand All @@ -155,6 +157,8 @@ def do_copy_basic():
create_folder_for_file(sfile)
if not os.path.exists("%s/.%s" % (HOME, sfile)):
os.system("cp '%s/%s' '%s/.%s'" % (CONFIG_DIR, sfile, HOME, sfile))
if not os.path.exists("/usr/bin/pulseaudio"):
os.remove("%s/.asoundrc" % (HOME,))

def do_copy_theme(fontSize, copy_all=False):
for sfile in CONFIG_THEME:
Expand Down Expand Up @@ -210,7 +214,7 @@ def do_final_stuff():
os.system('gconftool-2 --type string --set /system/gstreamer/0.10/default/audiosink_description "Jack"')
os.system('gconftool-2 --type string --set /system/gstreamer/0.10/default/chataudiosink_description "Jack"')
os.system('gconftool-2 --type string --set /system/gstreamer/0.10/default/musicaudiosink_description "Jack"')

os.system('gconftool-2 --type string --set /system/gstreamer/1.0/default/audiosink_description "Jack"')
os.system('gconftool-2 --type string --set /system/gstreamer/1.0/default/chataudiosink_description "Jack"')
os.system('gconftool-2 --type string --set /system/gstreamer/1.0/default/musicaudiosink_description "Jack"')
Expand All @@ -235,7 +239,7 @@ def do_live_stuff():
# Separate Thread for Copying Stuff
class CopyStuffThread(QThread):
setLabelPixmap = pyqtSignal(int, int)

def __init__(self, parent=None):
super(CopyStuffThread, self).__init__(parent)

Expand Down

0 comments on commit 45795f9

Please sign in to comment.