page layout tool
git clone https://git.lucas.co/cce-layout-interface.git
refactor: adapt to cce-ui event layering and renaming changes
Cargo.toml | 2 +-
Makefile | 2 +-
src/main.rs | 13 +++++++------
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index a7e412c..79d11d6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "clear-layout-interface"
+name = "cce-layout-interface"
version = "0.1.0"
edition = "2021"
diff --git a/Makefile b/Makefile
index 5f9f463..9132567 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ build:
install: build
mkdir -p ~/.local/bin
- install -m 755 ../target/release/clear-layout-interface ~/.local/bin/clear-layout-interface
+ install -m 755 ../target/release/cce-layout-interface ~/.local/bin/cce-layout-interface
run:
cargo run
diff --git a/src/main.rs b/src/main.rs
index 7c4b39c..3d8b8aa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -439,7 +439,8 @@ impl LayoutApp {
std::env::var("HOME").ok().map(|h| {
let mut path = std::path::PathBuf::from(h);
path.push(".config");
- path.push("clear-layout-interface");
+ path.push("cce");
+ path.push("cce-layout-interface");
path.push("recent_files.json");
path
})
@@ -495,11 +496,11 @@ impl LayoutApp {
}
fn perform_save_as(&mut self) {
- let path_opt = std::process::Command::new("/home/lsgalante/.local/bin/cce-filesystem-interface")
+ let path_opt = std::process::Command::new("/home/lsgalante/.local/bin/cce-files")
.arg("--save")
.output()
.or_else(|_| {
- std::process::Command::new("cce-filesystem-interface")
+ std::process::Command::new("cce-files")
.arg("--save")
.output()
})
@@ -597,11 +598,11 @@ impl LayoutApp {
}
fn perform_open(&mut self) {
- let path_opt = std::process::Command::new("/home/lsgalante/.local/bin/cce-filesystem-interface")
+ let path_opt = std::process::Command::new("/home/lsgalante/.local/bin/cce-files")
.arg("--select")
.output()
.or_else(|_| {
- std::process::Command::new("cce-filesystem-interface")
+ std::process::Command::new("cce-files")
.arg("--select")
.output()
})
@@ -2887,7 +2888,7 @@ impl Application for LayoutApp {
};
WindowSettings {
title: format!("Clear Layout Interface - {}{}", filename, unsaved_suffix),
- app_id: "clear-layout-interface".to_string(),
+ app_id: "cce-layout-interface".to_string(),
width: 1024,
height: 768,
fullscreen: false,