PY-26627 Fix after review

This commit is contained in:
Aleksey Rostovskiy
2017-10-24 13:45:42 +03:00
parent c35b9d8a1b
commit ec6931be44
4 changed files with 3 additions and 12 deletions
@@ -196,7 +196,7 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
buildContext.messages.block("Build Linux .snap package") {
buildContext.messages.progress("Preparing files")
def desktopTemplate = "${buildContext.paths.communityHome}/platform/build-scripts/resources/linux/snap/entry.desktop"
def desktopTemplate = "${buildContext.paths.communityHome}/platform/platform-resources/src/entry.desktop"
def productName = buildContext.applicationInfo.productNameWithEdition
buildContext.ant.copy(file: desktopTemplate, tofile: "${snapDir}/snap/gui/${customizer.snapName}.desktop") {
filterset(begintoken: '$', endtoken: '$') {
@@ -1,9 +0,0 @@
[Desktop Entry]
Type=Application
Name=$NAME$
Icon=$ICON$
Exec=$SCRIPT$ %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=$WM_CLASS$
@@ -154,7 +154,7 @@ public class CreateDesktopEntryAction extends DumbAwareAction {
throw new RuntimeException(ApplicationBundle.message("desktop.entry.icon.missing", binPath));
}
String execPath = ourScript.getValue();
String execPath = String.format("\"%s\"", ourScript.getValue());
if (execPath == null) {
throw new RuntimeException(ApplicationBundle.message("desktop.entry.script.missing", binPath));
}
@@ -3,7 +3,7 @@ Version=1.0
Type=Application
Name=$NAME$
Icon=$ICON$
Exec="$SCRIPT$" %f
Exec=$SCRIPT$ %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false