Comments (3)
It works now but when I try from the postinstall script, the GUI spawns but the entire window is grey. I tried to run debug build but couldn't open the devtools nor could I right click. I don't know how to reproduce without the post install script.
from tauri.
I also tried calling relaunch from the rust side and the app just exits without it launching again.
.setup(|app| {
let args: Vec<String> = std::env::args().collect();
if args.len() > 1 {
if args[1] == "--relaunch-workaround" {
info!("found relaunch arg");
tauri::api::process::restart(&app.env());
}
}
from tauri.
If anyone in the future needs this, the solution that works is here
sudo -u $SUDO_USER gtk-launch obscura >/dev/null &2>/dev/null & disown
It is very important to redirect stdout and stderr to /dev/null.
from tauri.
Related Issues (20)
- [bug] tauri-utils-2.0.0-beta.13 throwing compile error `not found in 'schemars::_private'` HOT 1
- [bug] tauri-utils-2.0.0-beta.13 HOT 2
- [feat][v2] add cli option to switch to +stable compiler HOT 2
- [bug] Mac Production Build by GitHub Action doesn't run (missing libssl and code sign) HOT 2
- [bug] How do I know if remote content in webview has been loaded normally?
- [feat] SystemTray icon theming
- When building a Tauri application using Windows 10 Enterprise Edition, it cannot run on Windows 7.[bug] HOT 2
- How to isolate the localStorage between different windows?[feat]
- Missing packages in Debian 13 Trixie HOT 1
- [bug] tauri failed to load localhost dev server HOT 1
- [bug] Failed to exec ` cargo-tauri android android-studio-script `
- [bug] parent-window example doesn't work
- [bug] Inconsistent handling of app identifiers containing hyphens when building for Android
- [bug] socket.io not work in production mode HOT 1
- [bug] Signature decoding error HOT 4
- [bug] v2 Updating dependencies causes size exceptions HOT 8
- [bug] Drag-and-Drop doesn't handled properly on Linux HOT 2
- [feat] Cargo command for bundler with non-tauri support HOT 2
- [bug] could not compile `tauri` HOT 5
- [bug] Encoded text cannot have a 6-bit remainder on iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.