mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-19 19:14:53 +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
|
||||
.values()
|
||||
.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() {
|
||||
error!(
|
||||
"failed to mark plugin {} as executable: {e}",
|
||||
cp.plugin.appid
|
||||
);
|
||||
None
|
||||
} else if !cp.plugin.plugin_type.launches_directly() {
|
||||
None
|
||||
} else {
|
||||
Some({
|
||||
let mut cmd_parts = vec![cp
|
||||
|
|
Loading…
Add table
Reference in a new issue