Bundlebuilder: Use installed icon path in .desktop file

Previously, the bundle builder referenced the icon path in the
source directory - which was obviously not installed in the package.
This commit is contained in:
Sam Parkinson
2016-07-14 16:20:22 +10:00
parent c288d54ab8
commit 7779c74f44
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -333,7 +333,8 @@ class Installer(Packager):
cp.set(section, 'Terminal', 'false')
cp.set(section, 'Type', 'Application')
cp.set(section, 'Categories', 'Education;')
cp.set(section, 'Icon', self.config.bundle.get_icon())
cp.set(section, 'Icon', os.path.join(
activity_path, 'activity', self.config.bundle.get_icon_filename()))
cp.set(section, 'Exec', self.config.bundle.get_command())
cp.set(section, 'Path', activity_path) # Path == CWD for running