rog-supported crate

This commit is contained in:
Luke D. Jones
2021-08-26 13:15:43 +12:00
parent 498e604531
commit 326ca37847
25 changed files with 52 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "supergfxctl"
version = "1.1.0"
version = "2.0.0"
license = "MPL-2.0"
readme = "README.md"
authors = ["Luke <luke@ljones.dev>"]

View File

@@ -12,7 +12,7 @@ use supergfxctl::{
error::GfxError,
gfx_vendors::GfxVendors,
special::{get_asus_gsync_gfx_mode, has_asus_gsync_gfx_mode},
DBUS_DEST_NAME, GFX_CONFIG_PATH,
CONFIG_PATH, DBUS_DEST_NAME,
};
use zbus::{fdo, Connection, ObjectServer};
@@ -51,7 +51,7 @@ fn start_daemon() -> Result<(), Box<dyn Error>> {
let mut object_server = ObjectServer::new(&connection);
let config = GfxConfig::load(GFX_CONFIG_PATH.into());
let config = GfxConfig::load(CONFIG_PATH.into());
let enable_gfx_switching = config.gfx_managed;
let config = Arc::new(Mutex::new(config));

View File

@@ -9,7 +9,8 @@ pub mod system;
pub mod zbus_iface;
pub mod zbus_proxy;
pub const GFX_CONFIG_PATH: &str = "/etc/supergfxd.conf";
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const CONFIG_PATH: &str = "/etc/supergfxd.conf";
pub const DBUS_DEST_NAME: &str = "org.supergfxctl.Daemon";
pub const DBUS_IFACE_PATH: &str = "/org/supergfxctl/Gfx";