Added desktop files.
This commit is contained in:
parent
951cf2ae93
commit
ef713b1183
6
dist/puzzle.desktop
vendored
6
dist/puzzle.desktop
vendored
|
@ -2,13 +2,15 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Puzzle
|
Name=Puzzle
|
||||||
Exec=puzzle %F
|
Exec=puzzle %F
|
||||||
Version=1.0
|
Version=1.1
|
||||||
GenericName=Valentina's layout editor
|
GenericName=Valentina's layout editor
|
||||||
|
GenericName[uk]=Редактор розкладки Валентини
|
||||||
Comment=Create and edit layouts
|
Comment=Create and edit layouts
|
||||||
Comment[uk]=Створюйте і редагуйте розкладки
|
Comment[uk]=Створюйте і редагуйте розкладки
|
||||||
Comment[ru]=Создавайте и редактируйте раскладку
|
|
||||||
Icon=puzzle
|
Icon=puzzle
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=application/x-valentina-layout;
|
MimeType=application/x-valentina-layout;
|
||||||
Categories=Qt;Utility;FileTools;
|
Categories=Qt;Utility;FileTools;
|
||||||
TryExec=puzzle
|
TryExec=puzzle
|
||||||
|
Keywords=layout;nesting
|
||||||
|
StartupWMClass=puzzle
|
||||||
|
|
6
dist/tape.desktop
vendored
6
dist/tape.desktop
vendored
|
@ -2,13 +2,15 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Tape
|
Name=Tape
|
||||||
Exec=tape %F
|
Exec=tape %F
|
||||||
Version=1.0
|
Version=1.1
|
||||||
GenericName=Valentina's measurements editor
|
GenericName=Valentina's measurements editor
|
||||||
|
GenericName[uk]=Редактор мірок Валентини
|
||||||
Comment=Create and edit measurements
|
Comment=Create and edit measurements
|
||||||
Comment[uk]=Створюйте і редагуйте мірки
|
Comment[uk]=Створюйте і редагуйте мірки
|
||||||
Comment[ru]=Создавайте и редактируйте мерки
|
|
||||||
Icon=tape
|
Icon=tape
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=application/x-valentina-s-measurements;application/x-valentina-i-measurements;
|
MimeType=application/x-valentina-s-measurements;application/x-valentina-i-measurements;
|
||||||
Categories=Qt;Utility;FileTools;
|
Categories=Qt;Utility;FileTools;
|
||||||
TryExec=tape
|
TryExec=tape
|
||||||
|
Keywords=measurements
|
||||||
|
StartupWMClass=tape
|
||||||
|
|
5
dist/valentina.desktop
vendored
5
dist/valentina.desktop
vendored
|
@ -2,8 +2,9 @@
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Valentina
|
Name=Valentina
|
||||||
Exec=valentina %F
|
Exec=valentina %F
|
||||||
Version=1.0
|
Version=1.1
|
||||||
GenericName=Pattern making program
|
GenericName=Pattern making program
|
||||||
|
GenericName[uk]=Програма створення викрійок
|
||||||
Comment=Creating pattern of clothes
|
Comment=Creating pattern of clothes
|
||||||
Comment[uk]=Створеня викрійок одягу
|
Comment[uk]=Створеня викрійок одягу
|
||||||
Icon=valentina
|
Icon=valentina
|
||||||
|
@ -11,3 +12,5 @@ Terminal=false
|
||||||
MimeType=application/x-valentina-pattern;
|
MimeType=application/x-valentina-pattern;
|
||||||
Categories=Graphics;VectorGraphics;2DGraphics;Qt;Engineering;
|
Categories=Graphics;VectorGraphics;2DGraphics;Qt;Engineering;
|
||||||
TryExec=valentina
|
TryExec=valentina
|
||||||
|
Keywords=pattern
|
||||||
|
StartupWMClass=valentina
|
||||||
|
|
|
@ -1,7 +1,26 @@
|
||||||
|
import qbs.FileInfo
|
||||||
|
|
||||||
VApp {
|
VApp {
|
||||||
|
Depends { name: "freedesktop2" }
|
||||||
|
|
||||||
version: "0.7.52"
|
version: "0.7.52"
|
||||||
type: base.concat("testSuit")
|
type: base.concat("testSuit")
|
||||||
install: true
|
install: true
|
||||||
installDir: buildconfig.installAppPath
|
installDir: buildconfig.installAppPath
|
||||||
installDebugInformation: true
|
installDebugInformation: true
|
||||||
|
|
||||||
|
Group {
|
||||||
|
name: "freedesktop"
|
||||||
|
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
|
||||||
|
files: [
|
||||||
|
product.targetName + ".desktop"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
freedesktop2.desktopKeys: ({
|
||||||
|
'Exec': FileInfo.joinPaths(qbs.installPrefix,
|
||||||
|
product.installDir,
|
||||||
|
product.targetName) + ' %F',
|
||||||
|
'X-Application-Version': product.version,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,6 @@ Module {
|
||||||
cmd.highlight = "codegen";
|
cmd.highlight = "codegen";
|
||||||
cmd.sourceCode = function() {
|
cmd.sourceCode = function() {
|
||||||
var aggregateDesktopKeys = Fdo.parseDesktopFile(input.filePath);
|
var aggregateDesktopKeys = Fdo.parseDesktopFile(input.filePath);
|
||||||
console.info(JSON.stringify(aggregateDesktopKeys));
|
|
||||||
var desktopKeys = ModUtils.moduleProperty(product, "desktopKeys") || {}
|
var desktopKeys = ModUtils.moduleProperty(product, "desktopKeys") || {}
|
||||||
var mainSection = aggregateDesktopKeys['Desktop Entry'];
|
var mainSection = aggregateDesktopKeys['Desktop Entry'];
|
||||||
for (key in desktopKeys) {
|
for (key in desktopKeys) {
|
||||||
|
|
|
@ -40,8 +40,6 @@ function parseDesktopFile(filePath) {
|
||||||
if (line.length == 0) continue;
|
if (line.length == 0) continue;
|
||||||
if (line[0] == '#') continue;
|
if (line[0] == '#') continue;
|
||||||
var match = sectionRex.exec(line);
|
var match = sectionRex.exec(line);
|
||||||
console.info(line)
|
|
||||||
console.info(match)
|
|
||||||
if (match) {
|
if (match) {
|
||||||
var currentSectionName = match[1];
|
var currentSectionName = match[1];
|
||||||
fileValues[currentSectionName] = {};
|
fileValues[currentSectionName] = {};
|
||||||
|
|
|
@ -71,6 +71,10 @@ auto main(int argc, char *argv[]) -> int
|
||||||
VPApplication app(argc, argv);
|
VPApplication app(argc, argv);
|
||||||
app.InitOptions();
|
app.InitOptions();
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
|
app.setDesktopFileName("puzzle.desktop");
|
||||||
|
#endif
|
||||||
|
|
||||||
QTimer::singleShot(0, &app, &VPApplication::ProcessCMD);
|
QTimer::singleShot(0, &app, &VPApplication::ProcessCMD);
|
||||||
|
|
||||||
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||||
|
|
|
@ -3,7 +3,6 @@ import qbs.FileInfo
|
||||||
VToolApp {
|
VToolApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
||||||
Depends { name: "freedesktop" }
|
|
||||||
Depends { name: "Qt"; submodules: ["widgets", "svg"] }
|
Depends { name: "Qt"; submodules: ["widgets", "svg"] }
|
||||||
Depends { name: "VMiscLib" }
|
Depends { name: "VMiscLib" }
|
||||||
Depends { name: "VLayoutLib" }
|
Depends { name: "VLayoutLib" }
|
||||||
|
|
|
@ -66,7 +66,11 @@ auto main(int argc, char *argv[]) -> int
|
||||||
#endif //Q_OS_MAC
|
#endif //Q_OS_MAC
|
||||||
|
|
||||||
MApplication app(argc, argv);
|
MApplication app(argc, argv);
|
||||||
app.InitOptions();
|
app.InitOptions();
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
|
app.setDesktopFileName("tape.desktop");
|
||||||
|
#endif
|
||||||
|
|
||||||
QTimer::singleShot(0, &app, &MApplication::ProcessCMD);
|
QTimer::singleShot(0, &app, &MApplication::ProcessCMD);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import qbs.File
|
||||||
VToolApp {
|
VToolApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
||||||
Depends { name: "freedesktop" }
|
|
||||||
Depends { name: "Qt"; submodules: ["widgets", "svg"] }
|
Depends { name: "Qt"; submodules: ["widgets", "svg"] }
|
||||||
Depends { name: "VMiscLib"; }
|
Depends { name: "VMiscLib"; }
|
||||||
Depends { name: "VPatternDBLib"; }
|
Depends { name: "VPatternDBLib"; }
|
||||||
|
|
|
@ -80,6 +80,10 @@ auto main(int argc, char *argv[]) -> int
|
||||||
VApplication app(argc, argv);
|
VApplication app(argc, argv);
|
||||||
app.InitOptions();
|
app.InitOptions();
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||||
|
app.setDesktopFileName("valentina.desktop");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (VApplication::IsGUIMode() && VAbstractApplication::VApp()->Settings()->IsAutomaticallyCheckUpdates())
|
if (VApplication::IsGUIMode() && VAbstractApplication::VApp()->Settings()->IsAutomaticallyCheckUpdates())
|
||||||
{
|
{
|
||||||
// Set feed URL before doing anything else
|
// Set feed URL before doing anything else
|
||||||
|
|
|
@ -4,7 +4,6 @@ import qbs.File
|
||||||
VToolApp {
|
VToolApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
Depends { name: "ib"; condition: qbs.targetOS.contains("macos") }
|
||||||
Depends { name: "freedesktop" }
|
|
||||||
Depends { name: "Qt"; submodules: ["widgets", "svg", "xmlpatterns", "concurrent"] }
|
Depends { name: "Qt"; submodules: ["widgets", "svg", "xmlpatterns", "concurrent"] }
|
||||||
Depends { name: "VPatternDBLib"; }
|
Depends { name: "VPatternDBLib"; }
|
||||||
Depends { name: "VWidgetsLib"; }
|
Depends { name: "VWidgetsLib"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user