mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-22 04:24:50 +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 constants::{resources, APP_ID, APP_NAME, GETTEXT_PACKAGE, LOCALE_DIR};
|
||||
use file_builders::{
|
||||
|
@ -5,6 +7,7 @@ use file_builders::{
|
|||
openvrpaths_vrpath::{get_current_openvrpaths, set_current_openvrpaths_to_steam},
|
||||
};
|
||||
use gettextrs::LocaleCategory;
|
||||
use gtk::prelude::ObjectExt;
|
||||
use relm4::{
|
||||
adw,
|
||||
gtk::{self, gdk, gio, glib},
|
||||
|
@ -91,8 +94,8 @@ fn main() -> Result<()> {
|
|||
|
||||
let main_app = adw::Application::builder()
|
||||
.application_id(APP_ID)
|
||||
.flags(gio::ApplicationFlags::empty())
|
||||
.resource_base_path("/org/gabmus/envision")
|
||||
.flags(gio::ApplicationFlags::FLAGS_NONE)
|
||||
.resource_base_path(format!("/{}", APP_ID.replace(".", "/")))
|
||||
.build();
|
||||
let app = RelmApp::from_app(main_app.clone());
|
||||
app.run::<App>(AppInit {
|
||||
|
|
Loading…
Add table
Reference in a new issue