mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
fix: always mark plugin executable as executable
This commit is contained in:
parent
35d268e01b
commit
67e2ade501
1 changed files with 3 additions and 1 deletions
|
@ -248,13 +248,15 @@ impl App {
|
||||||
.plugins
|
.plugins
|
||||||
.values()
|
.values()
|
||||||
.filter_map(|cp| {
|
.filter_map(|cp| {
|
||||||
if cp.plugin.plugin_type.launches_directly() && cp.enabled && cp.plugin.validate() {
|
if cp.enabled && cp.plugin.validate() {
|
||||||
if let Err(e) = cp.plugin.mark_as_executable() {
|
if let Err(e) = cp.plugin.mark_as_executable() {
|
||||||
error!(
|
error!(
|
||||||
"failed to mark plugin {} as executable: {e}",
|
"failed to mark plugin {} as executable: {e}",
|
||||||
cp.plugin.appid
|
cp.plugin.appid
|
||||||
);
|
);
|
||||||
None
|
None
|
||||||
|
} else if !cp.plugin.plugin_type.launches_directly() {
|
||||||
|
None
|
||||||
} else {
|
} else {
|
||||||
Some({
|
Some({
|
||||||
let mut cmd_parts = vec![cp
|
let mut cmd_parts = vec![cp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue