-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(debian): auto-add an Exec arg (field code) in the
.desktop
file (
#256) This change adds an `{exec_arg}` field to the default `main.desktop` template. This field is populated by handlebars with a sane default value, which is based on whether `deep_link_protocols` or `file_associations` in the `Config` struct have been specified. This allows an installed Debian package to be invoked by other applications with URLs or files as arguments, as expected. The `main.desktop` template previously did not automatically include an Exec field code even if `deep_link_protocols` or `file_associations` were set, which would confuse new users who incorrectly expected that the Debian package would automatically handle links and file associations upon installation. This change now ensures their expectations are met.
- Loading branch information
1 parent
6c7120f
commit de4dcca
Showing
6 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"cargo-packager": "patch" | ||
"@crabnebula/packager": "patch" | ||
--- | ||
|
||
Automatically add an Exec arg (field code) in the `.desktop` file. | ||
|
||
This adds an `{exec_arg}` field to the default `main.desktop` template. | ||
This field is populated with a sane default value, based on the | ||
`deep_link_protocols` or `file_associations` in the `Config` struct. | ||
|
||
This allows an installed Debian package to be invoked by other | ||
applications with URLs or files as arguments, as expected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters