Hi anda,
I don't understand what you mean by tmp path, you mean an absolute path for the desktop entry? I have tried that.
I also tried other operations, if it's not written correctly I get errors otherwise it doesn't fire.......I don't understand what's happening :|
Added after 15 minutes:
Appearently Qt Installer Framework doesn't do operations after finish button was clicked.........
I have modified my script this way:
function Component() {}
Component.prototype.createOperations = function() {
component.createOperations();
var targetDir = installer.value("TargetDir");
var homeDir = installer.value("HomeDir");
var desktopFileTarget = installer.value("HomeDir") + "/.local/share/applications";
component.addOperation("CreateDesktopEntry",
"Cumulus.desktop",
"Type=Application\nTerminal=false\nExec= " + targetDir + "/Cumulus\nName=Cumulus\nIcon= " + targetDir + "/cumulus.svg");
component.addOperation("CreateDesktopEntry",
homeDir + "/.config/autostart/Cumulus.desktop",
"Type=Application\nTerminal=false\nExec= " + targetDir + "/Cumulus\nName=Cumulus\nIcon= " + targetDir + "/cumulus.svg");
}
function Component() {}
Component.prototype.createOperations = function() {
component.createOperations();
var targetDir = installer.value("TargetDir");
var homeDir = installer.value("HomeDir");
var desktopFileTarget = installer.value("HomeDir") + "/.local/share/applications";
component.addOperation("CreateDesktopEntry",
"Cumulus.desktop",
"Type=Application\nTerminal=false\nExec= " + targetDir + "/Cumulus\nName=Cumulus\nIcon= " + targetDir + "/cumulus.svg");
component.addOperation("CreateDesktopEntry",
homeDir + "/.config/autostart/Cumulus.desktop",
"Type=Application\nTerminal=false\nExec= " + targetDir + "/Cumulus\nName=Cumulus\nIcon= " + targetDir + "/cumulus.svg");
}
To copy to clipboard, switch view to plain text mode
Makes both Dash entry and autostart on login.
Bookmarks