mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-04 23:29:00 +00:00
feat: use appid with replace for resource path
This commit is contained in:
parent
cdf3c2fa13
commit
5f5c0298ae
1 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
use std::env;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use constants::{resources, APP_ID, APP_NAME, GETTEXT_PACKAGE, LOCALE_DIR};
|
use constants::{resources, APP_ID, APP_NAME, GETTEXT_PACKAGE, LOCALE_DIR};
|
||||||
use file_builders::{
|
use file_builders::{
|
||||||
|
@ -5,6 +7,7 @@ use file_builders::{
|
||||||
openvrpaths_vrpath::{get_current_openvrpaths, set_current_openvrpaths_to_steam},
|
openvrpaths_vrpath::{get_current_openvrpaths, set_current_openvrpaths_to_steam},
|
||||||
};
|
};
|
||||||
use gettextrs::LocaleCategory;
|
use gettextrs::LocaleCategory;
|
||||||
|
use gtk::prelude::ObjectExt;
|
||||||
use relm4::{
|
use relm4::{
|
||||||
adw,
|
adw,
|
||||||
gtk::{self, gdk, gio, glib},
|
gtk::{self, gdk, gio, glib},
|
||||||
|
@ -91,8 +94,8 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
let main_app = adw::Application::builder()
|
let main_app = adw::Application::builder()
|
||||||
.application_id(APP_ID)
|
.application_id(APP_ID)
|
||||||
.flags(gio::ApplicationFlags::empty())
|
.flags(gio::ApplicationFlags::FLAGS_NONE)
|
||||||
.resource_base_path("/org/gabmus/envision")
|
.resource_base_path(format!("/{}", APP_ID.replace(".", "/")))
|
||||||
.build();
|
.build();
|
||||||
let app = RelmApp::from_app(main_app.clone());
|
let app = RelmApp::from_app(main_app.clone());
|
||||||
app.run::<App>(AppInit {
|
app.run::<App>(AppInit {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue