patch to have correct path for executing app
This commit is contained in:
parent
71c37153e6
commit
6d7d3560e8
3 changed files with 35 additions and 0 deletions
11
desktopitemdialog.patch
Normal file
11
desktopitemdialog.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/cassowary/gui/components/desktopitemdialog.py 1970-01-01 01:00:01.000000000 +0100
|
||||||
|
+++ b/src/cassowary/gui/components/desktopitemdialog.py 1970-01-01 01:00:01.000000000 +0100
|
||||||
|
@@ -29,7 +29,7 @@
|
||||||
|
self.inp_icon.setText(icon_path)
|
||||||
|
self.inp_description.setText(description + " (cassowary remote application)")
|
||||||
|
self.inp_comment.setText("'{}' version '{}'".format(name, version))
|
||||||
|
- self.inp_command.setText("python3 -m cassowary -c guest-run -- '{}' %u".format(
|
||||||
|
+ self.inp_command.setText("cassowary -c guest-run -- '{}' %u".format(
|
||||||
|
path.replace("\\", "\\\\").replace("'", "").replace("\"", ""))
|
||||||
|
)
|
||||||
|
# Not using pixmap for now, just use css border-image
|
||||||
|
|
@ -38,6 +38,10 @@
|
||||||
wrapQtApp $out/bin/cassowary
|
wrapQtApp $out/bin/cassowary
|
||||||
'';
|
'';
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
patches = [
|
||||||
|
./main_ui.patch
|
||||||
|
./desktopitemdialog.patch
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
main_ui.patch
Normal file
20
main_ui.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
--- a/src/cassowary/gui/components/main_ui.py 1970-01-01 01:00:01.000000000 +0100
|
||||||
|
+++ b/src/cassowary/gui/components/main_ui.py 1970-01-01 01:00:01.000000000 +0100
|
||||||
|
@@ -69,7 +69,7 @@
|
||||||
|
desktop_item = """[Desktop Entry]
|
||||||
|
Comment=Cassowary Background Service
|
||||||
|
Encoding=UTF-8
|
||||||
|
-Exec=python -m cassowary -bc
|
||||||
|
+Exec=cassowary -bc
|
||||||
|
GenericName=cassowary-service
|
||||||
|
Icon={icon}
|
||||||
|
Name[en_US]=Cassowary Background Service
|
||||||
|
@@ -93,7 +93,7 @@
|
||||||
|
desktop_item = """[Desktop Entry]
|
||||||
|
Comment=Controls settings for cassowary
|
||||||
|
Encoding=UTF-8
|
||||||
|
-Exec=python -m cassowary -a
|
||||||
|
+Exec=cassowary -a
|
||||||
|
GenericName=cassowary
|
||||||
|
Icon={icon}
|
||||||
|
Name[en_US]=Cassowary Linux
|
||||||
Loading…
Add table
Add a link
Reference in a new issue