Skip to content

Commit

Permalink
patch:
Browse files Browse the repository at this point in the history
fix firefox functionality
  • Loading branch information
nkia-christoph committed Apr 10, 2022
1 parent 7b9f52e commit 6220b8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "app-profiles"
version = "0.2.1"
version = "0.2.2"
repository = "https://github.com/nkia-christoph/app-profiles"
license = "GPL-3.0-only"
authors = ["Christoph Kröppl <ch.kroeppl@gmx.at>"]
Expand Down
2 changes: 1 addition & 1 deletion config/firefox.ron
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(
shorthand: "ff",
cmd: "/usr/bin/firefox",
args: "-P",
args: "-new-instance -P",
profile_dirs: [
"~/.mozilla/firefox"
],
Expand Down
5 changes: 1 addition & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use ron::de::from_reader;
use serde::Deserialize;
use serde_regex;
use std::{
env::current_dir,
error::Error,
fs::{
File,
Expand All @@ -25,7 +24,6 @@ use std::{

const CONFIG_PAT: &str = "/config/*.ron";

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct Ron {
pub shorthand: String,
Expand All @@ -41,7 +39,6 @@ pub struct Ron {
pub icon: Option<String>,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct OptEntry{
name: String,
Expand Down Expand Up @@ -125,7 +122,7 @@ pub fn load_catalogue(path: PathBuf) -> Result<AppCataloge, Box<dyn Error>> {
cmd: [
ron.cmd.clone(),
ron.args.clone(),
format!("'{}'", name)
name.to_owned()
].join(" "),
}));
info!("[OK] matched profilefile {}", &name);
Expand Down

0 comments on commit 6220b8b

Please sign in to comment.