### install background and app icons
# clean up any 'background' dir if exists
rm -rf "$img_mnt"/{,.}background
- mkdir -p "$img_mnt"/.background "$img_mnt"/$resource_path
+ mkdir -p "$img_mnt"/.background "$img_mnt"/$resource_path/sface/images
cp $temp/sface/macos/graphic-install-background.png "$img_mnt"/.background/background.png
cp $temp/sface/macos/graphic-sfa.icns "$img_mnt"/$resource_path/appIcon.icns
+ cp $temp/sface/macos/graphic-sfa.png "$img_mnt"/$resource_path/sface/images
# the volume icons won't work - who cares
# cp $temp/sface/macos/graphic-vol-sface.icns "$img_mnt"/.background/volumeIcon.icns
# cp $temp/sface/macos/graphic-vol-sface.png "$img_mnt"/.background/volumeIcon.png
from sface.screens.helpscreen import HelpScreen
# depending on the platform..
+# could probably use Qt's resource system but looks overkill for just one file...
def locate_image_file (filename):
- for dir in [ '/usr/share' ] :
+ for dir in [ '/usr/share', '/Applications/sface.app/Contents/Resources/sface' ] :
for suffix in ['png','jpg']:
attempt=os.path.join(dir,'images',"%s.%s"%(filename,suffix))
if os.path.isfile(attempt) : return attempt
self.title = QLabel("", self)
scene=QGraphicsScene()
- pixmap = QPixmap(locate_image_file('graphic-sfa.png'))
+ pixmap = QPixmap(locate_image_file('graphic-sfa'))
logolabel=QLabel("",self)
logolabel.setPixmap(pixmap)
self.main = QLabel("", self)