build improvements (#1886)

* build improvements

* no workdir

* kiosk fully working

* setup profile prefs
This commit is contained in:
Aiden McClelland
2022-10-25 16:23:29 -06:00
parent 1cfd404321
commit 26d2152a36
7 changed files with 100 additions and 20 deletions

View File

@@ -40,4 +40,3 @@ If you have questions about how various pieces of the backend system work. Open
an issue and tag the following people
- dr-bonez
- ProofOfKeags

View File

@@ -167,11 +167,14 @@ where
impl Drop for SoundInterface {
fn drop(&mut self) {
let use_beep = self.use_beep;
let guard = self.guard.take();
tokio::spawn(async move {
if let Err(e) = tokio::fs::write(&*UNEXPORT_FILE, "0").await {
tracing::error!("Failed to Unexport Sound Interface: {}", e);
tracing::debug!("{:?}", e);
if !use_beep {
if let Err(e) = tokio::fs::write(&*UNEXPORT_FILE, "0").await {
tracing::error!("Failed to Unexport Sound Interface: {}", e);
tracing::debug!("{:?}", e);
}
}
if let Some(guard) = guard {
if let Err(e) = guard.unlock().await {