mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
rog-supported crate
This commit is contained in:
@@ -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>"]
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user