OpenDeck on Arch Linux

Hey Happy new Year, I saw that you provide a RPM and a DEP Package for OpenDeck. What are the Possible install methods for Arch Linux? In one Github Ise there has been stated that an appImage Version will be made. I didn't found it. BR Terrorwolf
299 Replies
ninjadev64
ninjadev6411mo ago
I don't have any experience with Arch what package format does it use, aside from AppImage? I will look into making an AppImage but my focus is currently on the rewrite
Terrorwolf
TerrorwolfOP11mo ago
It doesn't directly have a package format. But I think .pkg.tar.something
ninjadev64
ninjadev6411mo ago
i see i will make an appimage, but also keep in mind that the rewrite will be available this month at the latest
Terrorwolf
TerrorwolfOP11mo ago
.pkg.tar.zst Thanks. Also looking forward to the rewrite.
ninjadev64
ninjadev6411mo ago
just looked into it - Electron Forge doesn't actually support making AppImages without a third-party maker and I don't think that's really worth it for a piece of software that's about to be replaced - I can walk you through building it as a zip of the binary on your own system if you like
Terrorwolf
TerrorwolfOP11mo ago
I will look into it in the next few days. Right now its really late at my place. (About half past 4 a.m.) I will go to bed now. I will inform you If i need help (a walk through). Thanks so far.
tbmatuka
tbmatuka11mo ago
I'm also on arch and I just unpacked the package, moved the binary to /usr/local/bin/ and added the udev rules. Once the rewrite is done, I will set up an AUR package for it.
ninjadev64
ninjadev6411mo ago
that may not be necessary since I will be publishing it to Flatpak although I suppose some people might prefer the AUR
Terrorwolf
TerrorwolfOP11mo ago
Hi, I'm not directly a Fan of Flatpak if I can install it via another Way. It would be nice to have OpenDeck in the AUR.
ninjadev64
ninjadev6411mo ago
^
ΩмεցαЯοցυε
i can make an AUR package for it
ninjadev64
ninjadev6410mo ago
if tbmatuka doesn’t, feel free he’s mentioned he will, however
ΩмεցαЯοցυε
im already maintaining a few AUR packages, so shouldnt really be any trouble
tbmatuka
tbmatuka10mo ago
go for it, I can test it if you need I haven't made any packages in a while, so it would take me a bit to go through the documentation again
ΩмεցαЯοցυε
PKGBUILD is almost done https://aur.archlinux.org/packages/opendeck-git @tbmatuka i can add you as co-maintainer if you want
tbmatuka
tbmatuka10mo ago
indentation is a bit messed up 😄
ΩмεցαЯοցυε
doesnt look like it on my end
No description
ninjadev64
ninjadev6410mo ago
hmm, you might want to wait until the rewrite is more complete (e.g. system tray support, a way to actually exit, etc)
ΩмεցαЯοցυε
this just builds the latest git commit
tbmatuka
tbmatuka10mo ago
build failed for me: Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
ΩмεցαЯοցυε
where?
tbmatuka
tbmatuka10mo ago
it looks like we need to run svelte-kit sync before build it died during vite build
ΩмεցαЯοցυε
huh, i dont need to do that
tbmatuka
tbmatuka10mo ago
or npm check before npm build instead, it includes the sync
ΩмεցαЯοցυε
npm check? ah, npm run check weird thing is it works for me without a problem without that
tbmatuka
tbmatuka10mo ago
I'm guessing you ran it before, so the file existed
ΩмεցαЯοցυε
this is a clean build
tbmatuka
tbmatuka10mo ago
I'm updating everything, I haven't in a while I figured it out, I have nvm installed and the build was using an older version of node
tbmatuka
tbmatuka10mo ago
I also had to add options=('!lto') to PKGBUILD and install an appindicator library for the build to pass, now I still have to test the app 😄 it seems to work, but I don't have any plugins installed and I had to restart the app because refreshing devices didn't work
ΩмεցαЯοցυε
thats normal for the rewrite whats your AUR username? i can add you as co-maintainer so you can push those changes
tbmatuka
tbmatuka10mo ago
it's tbmatuka
ΩмεցαЯοցυε
youre co-maintainer now
tbmatuka
tbmatuka10mo ago
tnx
ninjadev64
ninjadev6410mo ago
refreshing devices doesn’t work? I mean it should only really be necessary if you plug it in after opendeck starts
ninjadev64
ninjadev6410mo ago
@ΩмεցαЯοցυε why is Node.js 6 a dependency for the package? It’s dinosaur years old and OpenDeck/Vite requires v18+ See also https://wiki.archlinux.org/title/node.js_
ninjadev64
ninjadev6410mo ago
you should use nodejs-lts-hydrogen alongside npm to get a newer node version instead of the bare minimum v6 required by npm
ΩмεցαЯοցυε
its not? its just listing aur packages that satisfy the dependency "npm" the current versions are in the normal repos
ninjadev64
ninjadev6410mo ago
No description
ninjadev64
ninjadev6410mo ago
depends on npm which depends on node, right? oh i see
ninjadev64
ninjadev6410mo ago
yeah, i got it
ΩмεցαЯοցυε
it requires any npm, and nodejs6-bin provides npm
Terrorwolf
TerrorwolfOP10mo ago
@ΩмεցαЯοցυε FYI: I just tried to install Opendeck-git from the AUR via yay. Got this Error: https://pastebin.com/P3Ep3i17 Building via git pull and cargo tauri build works.
Pastebin
Log Opendeck - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
ΩмεցαЯοցυε
@Terrorwolf try again
Terrorwolf
TerrorwolfOP10mo ago
seems like the same Error as far as I can tell.
ΩмεցαЯοցυε
what even are you up to date?
Terrorwolf
TerrorwolfOP10mo ago
yes. All uptodate.
Terrorwolf
TerrorwolfOP10mo ago
No description
ΩмεցαЯοցυε
what PKGBUILD does yay download?
Terrorwolf
TerrorwolfOP10mo ago
do you know where yay caches? Or should I just copy and paste the output while installing?
ΩмεցαЯοցυε
idk, i use paru which requires you to accept PKGBUILDS before allowing you to install them (which you should be doing anyways)
Terrorwolf
TerrorwolfOP10mo ago
I don't install anything from the AUR without checking the PKGBUILD. But only in the CLI
ΩмεցαЯοցυε
also iirc yay requires extra arguments to cleanbuild if you already have it installed
Terrorwolf
TerrorwolfOP10mo ago
yaeh. But I almost always choose cleanbuild
Terrorwolf
TerrorwolfOP10mo ago
thats my PKGBUILD yay uses
ΩмεցαЯοցυε
thats the new one weird that it doesnt work
ninjadev64
ninjadev6410mo ago
are hidapi and webkit2gtk really run-time dependencies? I thought they would both be makedepends entries
ΩмεցαЯοցυε
Probably not, i was trying those to hopefully have work
seffyroff
seffyroff9mo ago
Hey folks, I understand there's a rewrite in progress, and wanted to check in to align my expectations 🙂 I installed from the opendeck-git AUR which is showing as r44.4311b48-1 and the build runs, seems to detect my StreamDeck as it's listed in the device dropdown (original 15 key model) however it doesn't show a plugins button/menu. Just an empty grid and 2 dropdowns - one for device and one for profiles. Totally fine if this is due to it being WIP 🙂
ninjadev64
ninjadev649mo ago
totally normal, you need to install plugins :) unzip them and put them in ~/.config/com.amansprojects.opendeck/plugins
seffyroff
seffyroff9mo ago
doh! presumably I completely skipped over that part of the docs. Sorry!
ninjadev64
ninjadev649mo ago
there is no docs :)) at least not for the rewrite (AUR version is the rewrite)
seffyroff
seffyroff9mo ago
ok, any tips on how to download, say, this one? https://apps.elgato.com/plugins/com.elgato.cpu
seffyroff
seffyroff9mo ago
GitHub
Release CPU 1.2 · elgatosf/streamdeck-cpu
First public version of the CPU plugin for Stream Deck.
seffyroff
seffyroff9mo ago
yep that works! well, it appears in the app, and I can drag it onto the grid, and it appears on my device, but it's not doing any CPU readouts and there's no properties panel for it. I'll be patient 🙂
seffyroff
seffyroff9mo ago
I found this handy site that has links to downloads: https://streamdeck-plugins.com/
Stream Deck Plugins
Stream Deck Plugins
An unofficial repository featuring the best plugins for the Elgato Stream Deck
seffyroff
seffyroff9mo ago
maybe the CPU one doesn't work because there's a windows binary in there gonna try out the Open Hardware Monitor sensor, which appears to be javascript ah, the OHM util itself is windows only nvm
ninjadev64
ninjadev649mo ago
I’ve written a script for downloading all of the plugins off the Elgato App Store, I just need to host it somewhere (some of them are too big for GitHub) CPU should “work” by just always showing 5%
CabCallaway
CabCallaway9mo ago
Hello, I got it installed as well but can't figure out how to download the Twitch plugins as I can't find them on github. Would it be possible to share that script, or the method you used? Oh, I found all the links in your repo from the other thread - thanks for uploading that!
ninjadev64
ninjadev644mo ago
available on a proper site now! https://plugins.amansprojects.com/ @seffyroff too if they are unneeded, please could you remove them? I’m marking this as solved since there are now both opendeck and opendeck-git packages on the AUR @ΩмεցαЯοցυε the opendeck package is 2 important releases out of date, please could you bump the version
ΩмεցαЯοցυε
done
ninjadev64
ninjadev644mo ago
the release candidate uses Deno instead of npm and Node so you will need to adapt to that
ΩмεցαЯοցυε
how do you do stuff with deno?
ninjadev64
ninjadev644mo ago
not sure what you mean?
ninjadev64
ninjadev644mo ago
Deno
Deno, the next-generation JavaScript runtime
Deno features improved security, performance, and developer experience compared to its predecessor. It's a great time to upgrade your Node.js project to run on Deno.
ΩмεցαЯοցυε
ive never used deno, i dont know what commands to use instead of the npm ones
ninjadev64
ninjadev644mo ago
you shouldn’t need to invoke any, just like you didn’t need to invoke any npm commands (apart from install maybe which you can just remove) because the tauri cli does everything
ΩмεցαЯοցυε
how do i install the dependencies then? ah, i got it
error: the following required arguments were not provided:
<file>...

Usage: deno cache --reload[=<CACHE_BLOCKLIST>...] <file>...
error: the following required arguments were not provided:
<file>...

Usage: deno cache --reload[=<CACHE_BLOCKLIST>...] <file>...
huh
ΩмεցαЯοցυε
the docs say this
No description
ninjadev64
ninjadev644mo ago
don’t need to, as I said, you can just remove that command as the first invocation of vite build will do it
ΩмεցαЯοցυε
the purpose of the command was to install and cache the dependencies in a non-standard location to keep the package build cache seperate from the normal cache because thats what the guidelines say to do and the equivalent of that is deno cache
ninjadev64
ninjadev644mo ago
I don’t think you need that, to be honest
ΩмεցαЯοցυε
if the guidelines say to do it, then thats what should be done
ninjadev64
ninjadev644mo ago
otherwise the DENO_DIR env var can be set to change the cache location which guidelines? the packages in the user’s Deno cache shouldn’t have been modified and so it should be fine…
ΩмεցαЯοցυε
the closest thing there is to deno packaging guidelines
ninjadev64
ninjadev644mo ago
Deno is very different to Node
ΩмεցαЯοցυε
its a javascript runtime
ninjadev64
ninjadev644mo ago
if you really want to avoid making a folder in the user’s home directory, just do this ^
ΩмεցαЯοցυε
as far as i understand it, dependencies should be downloaded during the prepare step according to the deno docs, this should be working
ninjadev64
ninjadev644mo ago
deno doesn't have an install command, at least not one that should be used outside of obscure circumstances, it just downloads deps when the program runs so much so, in fact, that pure deno programs specify dependencies in the import statement with npm: to signify npm or otherwise URLs to modules - as in, there is no package.json file
ΩмεցαЯοցυε
then how can i vendor the dependencies?
ninjadev64
ninjadev644mo ago
cargo tauri build will invoke deno task build, which evaluates to deno run -A npm:vite build, which should install all of the dependencies from package.json/deno.lock automatically I'm not sure if Deno has a standalone command to install deps, if that's what you're looking for additionally, it seems that cargo-tauri (a dependency of both the AUR packages) from the arch main repos is outdated at 1.5.11-2 - it's been flagged as outdated from what I can tell but it does prevent building OpenDeck unless you run cargo install tauri-cli manually to update it to 1.6.x @ΩмεցαЯοցυε I've found that DENO_DIR=deno_cache deno cache --node-modules-dir npm:vite downloads all of the JS dependencies of OpenDeck to node_modules as expected without creating any folders in the user's home directory, so you could use that in place of npm install in the prepare step
ΩмεցαЯοցυε
==> Starting build()... Error tauri.conf.json error on tauri > bundle: Additional properties are not allowed ('rpm' was unexpected)
ΩмεցαЯοցυε
huh, how is there no cargo-tauri-git package ah, for some reason its called tauri-cli on the AUR
ninjadev64
ninjadev644mo ago
2 other things:
ninjadev64
ninjadev644mo ago
No description
ninjadev64
ninjadev644mo ago
1. the indentation in prepare has been annoying me for a long time 2. could you update the description to the more concise "OpenDeck is a cross-platform desktop application that provides functionality for stream controller devices." I'm using everywhere now
ΩмεցαЯοցυε
ah, didnt notice the indentation because ive got tab width set to 4 spaces
ninjadev64
ninjadev644mo ago
think it was mentioned before as well haha ^
ΩмεցαЯοցυε
ok, new pkgbuild is building rn, everything seems to be going well
ninjadev64
ninjadev644mo ago
FYI, the udev subsystem rules are included automatically in the .DEB now, so you don't need to include them yourself
ΩмεցαЯοցυε
ok, everything is updated now
ninjadev64
ninjadev644mo ago
awesome! you don't seem to have removed the udev rules install -Dm644 -t "$pkgdir/etc/udev/rules.d" 50-elgato.rules is still there I would also change deno cache npm:vite to deno cache --node-modules-dir npm:vite just to be safe
ΩмεցαЯοցυε
ah, forgot to remove udev from the git version
ninjadev64
ninjadev644mo ago
yeah, sources still in there in -git, and in the normal version the install command is still there as well
ΩмεցαЯοցυε
ok, now it should be correct
ninjadev64
ninjadev644mo ago
thanks! the AUR packages are now mentioned in the README as well I must say Arch looks enticing should I leave openSUSE (Tumbleweed) for it? the AUR and wiki mainly my question is how does stuff from the AUR get uninstalled cleanly without leaving everything behind?
Percy_Ikana
Percy_Ikana4mo ago
I need to switch to proper arch instead of Manjaro, I just really don't want to re setup. I absolutely cannot get the current version of opendeck-git to build, it fails on tauri-cli due to an outdated time library. Does this work for anyone else? Editing the pkgbuild of tauri-cli fixed this. I know this is not an opendeck issue, im just curous if anyone else has build it straight from ther AUR
Life_404
Life_4044mo ago
I had to cargo install and Unistall tauri-cli to get it to build on my system
tbmatuka
tbmatuka4mo ago
@ninjadev64 I'm getting a "Failed to create store for profile" error, but I see that the dir and the json file were created. how can I debug this? nevermind, I removed the whole config dir and it works now
ninjadev64
ninjadev644mo ago
either your file corrupted, or you haven't updated in a long, long time
tbmatuka
tbmatuka4mo ago
the second one 🙂 do you have a recommendation on how to set up plugin development? is there an easy way to restart a plugin? also, the icon on my steamdeck mini is displayed upside down for some reason, can I fix that somewhere? It's in the correct position, but upside down
Percy_Ikana
Percy_Ikana4mo ago
Is this all icons for any buttons?
tbmatuka
tbmatuka4mo ago
what do you mean? the content of each key individually is upside down, including the text, but the top left icon in the UI is top left on the stream deck
Percy_Ikana
Percy_Ikana4mo ago
I was just asking if it was happening with all the bttons, yes
tbmatuka
tbmatuka4mo ago
I don't know how it would happen on just one of the buttons 😄
Percy_Ikana
Percy_Ikana4mo ago
because asking for clarification is always a good way to start. This appears to be an issue that can occur even on the offical software, does it only display upside down for Opendeck for you?
tbmatuka
tbmatuka4mo ago
I'm on linux now, so I can't test with the official software, but it never happened before, including with the old version of opendeck
Percy_Ikana
Percy_Ikana4mo ago
Try streamdeck-ui Just to verify that if it happens there as well or not.
tbmatuka
tbmatuka4mo ago
streamdeck-ui is not upside down
Percy_Ikana
Percy_Ikana4mo ago
@ninjadev64 can tell you better than I, but perhaps a setting in the menu to allow for icon rotation, like the elgato software has? Rendering is done in renderhelper.rs, which is called by key.svelte.
ninjadev64
ninjadev644mo ago
can we discuss this in #general or a new thread? this should be just arch-related
ΩмεցαЯοցυε
the aur build script is run to make a tar.zst package file, which is then installed like normal
ninjadev64
ninjadev644mo ago
ah makes sense @𝕵𝖎𝖒𝖂𝖔𝖑𝖋 is this what you're experiencing? ^^
𝕵𝖎𝖒𝖂𝖔𝖑𝖋
Yeah that comment helped, thanks man @ninjadev64
ninjadev64
ninjadev644mo ago
awesome, does it install now?
𝕵𝖎𝖒𝖂𝖔𝖑𝖋
yh it's installed ty
ninjadev64
ninjadev644mo ago
@ΩмεցαЯοցυε please do bump to 2.0.0-rc.1 (and change the license to MIT) when you have time, thanks 👍
ΩмεցαЯοցυε
ill do that once my power is on again
ninjadev64
ninjadev644mo ago
cool, thanks
ΩмεցαЯοցυε
done
ninjadev64
ninjadev644mo ago
👍
Percy_Ikana
Percy_Ikana2mo ago
yay -S opendeck-git
No description
Percy_Ikana
Percy_Ikana2mo ago
Ive seen chatter in general about arch issues so figured id share what I get trying to update. Im on pure arch now.
ninjadev64
ninjadev642mo ago
Copy-paste:
yeah, a released version of OpenDeck that uses Tauri v2 isn't out yet because Tauri v2 isn't out yet, but the latest few commits migrate the codebase to v2 so if you're using the opendeck-git package you might get that
@Dem @Fl1tch if you want to continue the discussion, here is the arch thread
Percy_Ikana
Percy_Ikana2mo ago
Not sure what's going on, updated to the most recent opendeck-git And this is what I get The buttons work, and profiles will switch, but it displays nothing. Brightness control works though. There are no logs that are out of order on either the consoole or log file.
No description
Terrorwolf
TerrorwolfOP2mo ago
Hi, Do you know which Package I need to install Opendeck on Arch Linux? Since Tauri-v2 now oficially is released now, I can reinstall it again after I bricked my Computer about a week ago.
ninjadev64
ninjadev642mo ago
Someone else reported this today. So nothing in the terminal or in the devtools console? Could you try the 2.1.0-beta release from around a week ago You probably need to install from source right now as the maintainer of the tauri-cli package hasn't updated and @ΩмεցαЯοցυε doesn't want to install tauri-cli in the OpenDeck build script (even though it would make sense because different projects require different versions)
Terrorwolf
TerrorwolfOP2mo ago
I just saw that https://aur.archlinux.org/packages/tauri-cli has been updated to Version 2.0.1. Would it work when I install this?
ninjadev64
ninjadev642mo ago
It may well do, try the opendeck-git package
Terrorwolf
TerrorwolfOP2mo ago
I will try it in a few minutes
Percy_Ikana
Percy_Ikana2mo ago
I will try the other version probably tomorrow morning when have access to my computer again.
Terrorwolf
TerrorwolfOP2mo ago
got this Error with the Git Version.
No description
ninjadev64
ninjadev642mo ago
yeah, build from source, outdated cli you could try cargo install tauri-cli and then install the git package again
Terrorwolf
TerrorwolfOP2mo ago
I found the Problem. Somehow I had tauri installed in Version 1.6. I don't know where it came from but I removed it and now it works. Maybe somehow with my Backup the old Version got on my PC.
Terrorwolf
TerrorwolfOP2mo ago
Another thing: When I start opendeck, my Streamdeck goes black (elgato Logo Vanishes) and in Opendeck its just a white Window.
No description
ninjadev64
ninjadev642mo ago
Nvidia GPU? Use WEBKIT_DISABLE_DMABUF_RENDERER=1 opendeck That will fix the white screen but not the stream deck, other people are having issues with the stream deck being blank in 2.1.0
Terrorwolf
TerrorwolfOP2mo ago
As you said, it woks for the Withe Problem but not that the Streamdeck is not showing anything. You you need anything to Debug the Problem?
Terrorwolf
TerrorwolfOP2mo ago
Also I think I found a bug. If Opendeck is to small to show everything, and Dark Mode is enabled and you scroll to the right, its there not in dark mode anymore.
No description
ninjadev64
ninjadev642mo ago
yeah normally you would resize the window but I haven't updated to the version with the fix for the Tauri but that means you can't do that
ΩмεցαЯοցυε
does installing tauri-cli using cargo affect the host system in any way?
ninjadev64
ninjadev642mo ago
It's presumably installed globally but it's the same as installing the tauri-cli package, just that you get to specify the version
Percy_Ikana
Percy_Ikana2mo ago
I only tested the app image for 2.1.0-beta and the screen updates as expected for completeness, the appimage of the current version is broken in the same way as the opendeck-git package.
ninjadev64
ninjadev642mo ago
Alright thanks @Percy_Ikana or someone else could you try the latest commit?
Percy_Ikana
Percy_Ikana2mo ago
I already did, its the same. no screen
ninjadev64
ninjadev642mo ago
you mean the "Revert dependency updates" one?
Percy_Ikana
Percy_Ikana2mo ago
I pulled opendeck git again, let me try pulling from source No change. pulled fresh from git and built.
ninjadev64
ninjadev642mo ago
annoying the only other thing it could be is the update to tauri v2-stable from v2-rc? nothing else happened in between 2.1.0-beta and 2.1.0...
ΩмεցαЯοցυε
if its global then thats a no for package the PKGBUILD is theoretically never run on the target system and should be treated as such and the contents of a pkgbuild should not interact with the host system outside package dependencies
ninjadev64
ninjadev642mo ago
the tauri-cli is not a runtime dependency and so it does not matter if it is not run on the target system it is a package dependency
ninjadev64
ninjadev642mo ago
Stack Overflow
How do I change where cargo install places binaries?
I am installing racer, rustfmt & rustsym cargo install racer cargo install rustfmt cargo install rustsym The packages are being installed in C:\Users<UserName>.cargo, but I want it t...
ΩмεցαЯοցυε
yep, the problem still is that the package builder system is affected package dependency as in dependencies contained in other packages that can be removed after building the package using the package manager
Terrorwolf
TerrorwolfOP2mo ago
isn't that a build dependency?
ΩмεցαЯοցυε
build dependencies in packages the requirement is that the PKGBUILD does not have sideeffects on the system
ninjadev64
ninjadev642mo ago
@ΩмεցαЯοցυε ^
Terrorwolf
TerrorwolfOP2mo ago
Just for my understanding, what side effects does the tauri-cli package from aur have?
ninjadev64
ninjadev642mo ago
It probably just runs cargo install tauri-cli
Percy_Ikana
Percy_Ikana2mo ago
Does this (the screen not drawing) seem to be an arch only issue? or are most the users just using arch?
ninjadev64
ninjadev642mo ago
I think most of the users are arch lol most of the vocal ones / ones on the latest version at least my used stream deck mini is arriving in a few days so this shouldn't happen again at least @Percy_Ikana My Stream Deck Mini has just arrived, exciting! Bad news: the screen works in 2.1.0 oh hold on i've got the beta Ok I can repro this, I'm going to try and fix it now It seems it was my fault Alright @Percy_Ikana and @Terrorwolf it's now fixed in 2.1.1
Percy_Ikana
Percy_Ikana2mo ago
I'll try it when I get back home What was the issue?
ninjadev64
ninjadev642mo ago
I was enforcing that the serial number should only be alphabetic to fix this guy’s issue but forgot about the dash
Percy_Ikana
Percy_Ikana2mo ago
Ah, that explains why it made a new profile folder without the dash. You said the mini was 40 pounds?
ninjadev64
ninjadev642mo ago
Yep
Terrorwolf
TerrorwolfOP2mo ago
thanks for the Update. But everytime I start Opendeck, four Windows open together with the Main Opendeck Window:
No description
Terrorwolf
TerrorwolfOP2mo ago
What is the Best way to automaticlly add this to the Start Argument of Opendeck so I don't have to start Opendeck from the Terminal? And is there an official service File for Systemctl?
ninjadev64
ninjadev642mo ago
you have Developer Mode on and HTML5 plugins installed no, but there is an autostart option in settings which complies with the freedesktop autostart spec I believe you can add the variable to /etc/environment or something
Percy_Ikana
Percy_Ikana2mo ago
I can verify functionality is restored.
ninjadev64
ninjadev642mo ago
Good news Arch users! Soon, the Tauri CLI will have in-built support (it has been merged but not released) for the newly-released Deno v2. This means the Cargo CLI will no longer be needed and the headache of building OpenDeck on Arch will be resolved. @ΩмεցαЯοցυε I've already pushed a commit that migrates the project to Deno v2 - you can edit the PKGBUILD to this:
...
makedepends=(git deno dpkg hidapi webkit2gtk libappindicator-gtk3)
...

prepare() {
Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

...
...
makedepends=(git deno dpkg hidapi webkit2gtk libappindicator-gtk3)
...

prepare() {
Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

...
You probably need to wait for Deno in the Arch repositories to be v2 first though. The latest commit sets up the project for using the CLI through Deno (when installed with the JS package manager like npm or Deno the Tauri CLI is per-project as it should be, only through cargo is it system-wide), which should fix the tauri-cli package nightmare! You probably have to wait for Deno to be updated to v2 in the Arch repositories though.
Terrorwolf
TerrorwolfOP2mo ago
Since this is a Arch Package and not an AUR Package it should be updated very fast. (Last Update 7. October 2024)
ninjadev64
ninjadev642mo ago
it still isn't unfortunately
maxidaxi1676
maxidaxi16762mo ago
Hello, I have a SteamDeck (as you know with ArchLinux and KDE Plasma) and would like to use the Steam Deck+ from Elgato. The AppImage runs directly, the device is recognized, I can configure it, the device accepts the config, only outside the application (e.g. in the editor) nothing happens when I press the configured buttons. I suspect it has something to do with the AppImage, could that be the case?
ninjadev64
ninjadev642mo ago
What actions are you trying to use?
maxidaxi1676
maxidaxi16762mo ago
It feels like it doesn't matter which action I insert. Specifically, I have inserted "Run Command" and "Input Simulation" and also tried alternative text. The deck also takes over the icon cleanly. In the application the keystroke of the deck is also displayed, only outside e.g. in a text editor in KDE nothing happens when I press the keys. Do I have to do anything else apart from running the application in the background?
Terrorwolf
TerrorwolfOP2mo ago
I just tried this keys also Yesterday and the both didn't work for me either. Didn't had time to debug it further.
ninjadev64
ninjadev642mo ago
The input simulation is quite unreliable, I would try run command with xdg-open https://example.com
Terrorwolf
TerrorwolfOP2mo ago
Forgot to Mention, I am using Gnome.
maxidaxi1676
maxidaxi16762mo ago
I will try it out tonight. My target requirement is to use the SteamDeck in simulators. In the first step in MS FS2020, later in ETS2 under Proton.
Terrorwolf
TerrorwolfOP2mo ago
Is there a reason why you use ETS2 via Proton?
maxidaxi1676
maxidaxi16762mo ago
The ETS2 runs well on the SteamDeck under Proton. I love my SteamDeck as a gaming device and don't currently have a high-performance gaming PC.
Terrorwolf
TerrorwolfOP2mo ago
Okay. I must say I didn't try ETS2 via Proton since the Native Linux Version is pretty solid and also supports all of my used mods. (Mainly ProMods and a few custom cargo Mods and Environment Mods) And also my Driving Wheel works pretty well in the Native Linux Version. In my Proton Games I have some difficulties with my wheel.
maxidaxi1676
maxidaxi16762mo ago
Oh, I didn't realize there was a native Linux version of ETS2 with mod support and wheel support 🙂 I have a GeForce Wheel G920 which I would like to get running on the SteamDeck. Do you think my wheel will run out of the box, or do I need a special driver package? Something is happening 🙂 After the configuration and a keystroke on the deck, the mouse pointer changes and shows me that it wants to open Chrome, although I have set Firefox as the default browser in KDE. However, Chrome does not open and after a few flashes of the mouse icon, everything is over. If I explicitly change the default browser from Firefox to Chrome, Chrome does not open either. But this will be a problem with KDE, which I will probably have to solve myself. The question remains which calls do I have to use to use it in games/applications (e.g. FS2020) or to start applications?
Percy_Ikana
Percy_Ikana2mo ago
I have never had the app image work correctly, I had to install from the AUR (opendeck.git) for that to work, I have not tried the flatpak. For opening apps, either gtk-launch <app with desktopfile> or just the command needed in the terminal, such as "Firefox" For commands like macros, I have been using run command along with xdotool, since I dont think text input acts as pressing the keys (but also have no experimented much)
Terrorwolf
TerrorwolfOP2mo ago
I have the a bit newer Version of this. I had to install udev rules (mine were on the aur) and used oversteer to test it at first. If you want/need help to set it up, i can help you with that if you want to.
EagleEye
EagleEye2mo ago
Can you tell me how to solve this errors: Error tauri.conf.json error: "identifier" is a required property Error tauri.conf.json error on build: Additional properties are not allowed ('devPath', 'distDir' were unexpected) Error tauri.conf.json error: Additional properties are not allowed ('package', 'tauri' were unexpected) The installation always fails at this point. Thank you 🙂
ninjadev64
ninjadev642mo ago
the tauri-cli is outdated on the aur so it doesn't work currently, and Deno is out of date in the Arch repositories as well so we can't use that either install tauri-cli manually and build from source
Terrorwolf
TerrorwolfOP2mo ago
tauri-cli is already on the new version and works. I myself used it to install opendeck the last time.
ninjadev64
ninjadev642mo ago
hmm, seems it is actually at 2.0.3, maybe they just need to reinstall tauri-cli
Terrorwolf
TerrorwolfOP2mo ago
I needed to remove the tauri i installed via cargo to make it work. I think I had the same problem
EagleEye
EagleEye2mo ago
So, actual it is just buildable from source via tauri-cli atm?
ninjadev64
ninjadev642mo ago
Should be just do a clean build
EagleEye
EagleEye2mo ago
Okay, perfect. Thanks!
ninjadev64
ninjadev642mo ago
Actually, you can use the opendeck-git package in the meantime
that green neko
that green neko2mo ago
this is what happens if i try to install the git version
No description
that green neko
that green neko2mo ago
i'm just using the flatpak version now
ninjadev64
ninjadev642mo ago
outdated Deno it seems, shame so OpenDeck on arch is currently in limbo until arch updates deno
that green neko
that green neko2mo ago
well arch is rolling release, so it's more like until Deno updates
ninjadev64
ninjadev642mo ago
not sure what you mean, Deno 2 has been out for more than a week but the Deno package in the Arch repositories (not AUR) isn't updated
that green neko
that green neko2mo ago
that's exactly it actually
ninjadev64
ninjadev642mo ago
yes I'm confused lol
that green neko
that green neko2mo ago
...yeah arch is a bit confusing anyway i've attempted to install it from the AUR but it hasn't worked... and nobody's commented on the deno-git AUR page in 2 years so i think you might be right about OpenDeck on Arch being in limbo... a
ninjadev64
ninjadev642mo ago
I drive openSUSE Tumbleweed, perfectly familiar with rolling release, I'm just confused about this conversation not arch
that green neko
that green neko2mo ago
oh oh i misread your message completely missed the "deno" at the end of this message lol
ninjadev64
ninjadev642mo ago
that would clear things up lol
that green neko
that green neko2mo ago
i can upgrade deno, but when i do that, opendeck-git still doesn't install
No description
that green neko
that green neko2mo ago
and when i try to build it from source with the upgraded deno, this happens
No description
ninjadev64
ninjadev642mo ago
@ΩмεցαЯοցυε copy-pasting from a GitHub issue
OpenDeck on Arch is currently in limbo, the git package won't work until Deno is updated in the Arch repositories, and the non-git package won't work as it's too old. You just have to wait for the AUR maintainer to update the non-git package to 2.1.1, which is not the latest but also not the newest (it uses the new tauri-cli which Arch has but not the new Deno which Arch doesn't).
Percy_Ikana
Percy_Ikana2mo ago
Last night opendeck just stopped working, any attempt to open a profile fails
No description
No description
Percy_Ikana
Percy_Ikana2mo ago
For some reason copying the files out, launching clean, and putting the originals back in helped, it displays again, although the parsing errors remain.
ninjadev64
ninjadev645w ago
Oh hey sorry didn't see your messages If you open the files does anything look abnormal? I've had my profiles have a load of weird characters at the end of them before and they were unwritable Try copying the contents (not the file), deleting the file and then making a new file with those contents (while OpenDeck is closed)
Percy_Ikana
Percy_Ikana5w ago
It looks like the file just ends suddenly,
Percy_Ikana
Percy_Ikana5w ago
The other one that was an issue seems to have just nuked itself from orbit? but I imagine it was a similar issue, but I have no idea what could have caused it.
ninjadev64
ninjadev645w ago
weird, if it happens again I'll implement something where it keeps 2 versions of every file
Percy_Ikana
Percy_Ikana5w ago
I have made backups so that if it happens again I should have the "correct" and borked files to compare.
ninjadev64
ninjadev645w ago
👍 btw, I think we should just use this for issues related to compiling on arch, other things should be in separate threads or #general ;)
Terrorwolf
TerrorwolfOP3w ago
Do you know the command to verify the installed deno version?
ninjadev64
ninjadev643w ago
should be deno -v
Terrorwolf
TerrorwolfOP3w ago
I installed deno-init and the ran sudo deno upgrade. Could I run the newest version of Opendeck-git now or do I need to change something in the PKGBUILD?
No description
ninjadev64
ninjadev643w ago
certainly do try it what is deno-init? do you mean this curl -fsSL https://deno.land/install.sh | sh?
Terrorwolf
TerrorwolfOP3w ago
got this error:
No description
Terrorwolf
TerrorwolfOP3w ago
https://aur.archlinux.org/packages/deno-init this is deno-init Do you have an Idea?
ninjadev64
ninjadev643w ago
try a clean build?
Terrorwolf
TerrorwolfOP3w ago
you mean uninstall and reinstall opendeck?
ninjadev64
ninjadev643w ago
I think you can pass --rebuild to yay when updating opendeck no need to uninstall
Terrorwolf
TerrorwolfOP3w ago
same error with --rebuild
ninjadev64
ninjadev643w ago
maybe try uninstalling and reinstalling, it shouldn't delete your configs but back them up anyway or wait try making the changes to the PKGBUILD I sent in that GitHub issue
Terrorwolf
TerrorwolfOP3w ago
to late. Is already reinstalling
ninjadev64
ninjadev643w ago
oh lol
Terrorwolf
TerrorwolfOP3w ago
will try that. New installing didn't work with same error
ninjadev64
ninjadev643w ago
yeah those are probably necessary
ninjadev64
ninjadev643w ago
GitHub
Deno 2.x is not available in the Arch repositories · Issue #28 · ni...
Hello! When we try to build opendeck on Arch using the AUR package we're catching failures because tauri.conf.json was built using version 1.6.x standards but the Arch version of tauri-cli is n...
ninjadev64
ninjadev643w ago
send over the whole thing once you've modified it so I can take a look ignore the change in the makedepends to deno-git, you can keep that as deno or make it deno-init, don't make it git
Terrorwolf
TerrorwolfOP3w ago
should i remove this?
No description
ninjadev64
ninjadev643w ago
replace it with the Deno one that looks similar in the patch I sent
# ...
makedepends=(git deno dpkg hidapi webkit2gtk libappindicator-gtk3)
# ...

prepare() {
# Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
# Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

# ...
# ...
makedepends=(git deno dpkg hidapi webkit2gtk libappindicator-gtk3)
# ...

prepare() {
# Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
# Rust stuff...
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

# ...
the one at the bottom
Terrorwolf
TerrorwolfOP3w ago
..# Maintainer: OmegaRogue <[email protected]>
pkgname=opendeck-git
pkgver=r99.4bbd9f3
pkgrel=1
pkgdesc="A cross-platform desktop application that provides functionality for stream controller devices."
arch=('x86_64')
url="https://github.com/ninjadev64/OpenDeck"
license=('MIT')
makedepends=(git deno tauri-cli dpkg hidapi webkit2gtk libappindicator-gtk3)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!lto')
source=(
"${pkgname%-git}::git+https://github.com/ninjadev64/OpenDeck"
)

sha256sums=('SKIP')

pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cd ..
export DENO_DIR="${srcdir}/deno-cache"
deno cache npm:vite
deno install
}

build() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

package() {
cd "$srcdir/${pkgname%-git}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
..# Maintainer: OmegaRogue <[email protected]>
pkgname=opendeck-git
pkgver=r99.4bbd9f3
pkgrel=1
pkgdesc="A cross-platform desktop application that provides functionality for stream controller devices."
arch=('x86_64')
url="https://github.com/ninjadev64/OpenDeck"
license=('MIT')
makedepends=(git deno tauri-cli dpkg hidapi webkit2gtk libappindicator-gtk3)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!lto')
source=(
"${pkgname%-git}::git+https://github.com/ninjadev64/OpenDeck"
)

sha256sums=('SKIP')

pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cd ..
export DENO_DIR="${srcdir}/deno-cache"
deno cache npm:vite
deno install
}

build() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

package() {
cd "$srcdir/${pkgname%-git}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
does this seem right? okay. same problem
ninjadev64
ninjadev643w ago
no need for the deno cache npm:vite it's not in the patch I sent
Terrorwolf
TerrorwolfOP3w ago
this was already in the pkgbuild. just added the lines deno install and deno task tauri build --ci -b deb -- --frozen
Terrorwolf
TerrorwolfOP3w ago
No description
Terrorwolf
TerrorwolfOP3w ago
this is the now working PKGBUILD:
pkgname=opendeck-git
pkgver=r134.e9ea53e
pkgrel=1
pkgdesc="A cross-platform desktop application that provides functionality for stream controller devices."
arch=('x86_64')
url="https://github.com/ninjadev64/OpenDeck"
license=('MIT')
makedepends=(git deno tauri-cli dpkg hidapi webkit2gtk libappindicator-gtk3)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!lto')
source=(
"${pkgname%-git}::git+https://github.com/ninjadev64/OpenDeck"
)

sha256sums=('SKIP')

pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cd ..
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

package() {
cd "$srcdir/${pkgname%-git}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
pkgname=opendeck-git
pkgver=r134.e9ea53e
pkgrel=1
pkgdesc="A cross-platform desktop application that provides functionality for stream controller devices."
arch=('x86_64')
url="https://github.com/ninjadev64/OpenDeck"
license=('MIT')
makedepends=(git deno tauri-cli dpkg hidapi webkit2gtk libappindicator-gtk3)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
options=('!lto')
source=(
"${pkgname%-git}::git+https://github.com/ninjadev64/OpenDeck"
)

sha256sums=('SKIP')

pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
cd ..
export DENO_DIR="${srcdir}/deno-cache"
deno install
}

build() {
cd "$srcdir/${pkgname%-git}/src-tauri"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export DENO_DIR="${srcdir}/deno-cache"
deno task tauri build --ci -b deb -- --frozen
}

package() {
cd "$srcdir/${pkgname%-git}"
dpkg-deb -R $(find . -type f -name "*.deb") $pkgdir
rm -rf $pkgdir/DEBIAN
}
with deno-init package and then the deno update command. @ΩмεցαЯοցυε FYI
ninjadev64
ninjadev643w ago
I don't think omegarogue would want to use deno-init because it doesn't update with the system
Terrorwolf
TerrorwolfOP3w ago
would at least be an workaround worth of mentioning as a pinned comment I think.
ninjadev64
ninjadev642w ago
@ΩмεցαЯοցυε the opendeck package is still on 2.0.0 and doesn't build, whereas 2.2.1 is out and 2.1.1 should build, please could you update it to 2.1.1 at least so it builds if you don't have time to fix 2.2.1
ΩмεցαЯοցυε
what steps are needed to get 2.2.1 to build? im getting "unsupported lockfile version 4" from deno with this, im getting
error: the following required arguments were not provided:
<cmd>...

Usage: deno install <cmd>...
error: the following required arguments were not provided:
<cmd>...

Usage: deno install <cmd>...
ninjadev64
ninjadev642w ago
I gave the answer to that issue here first then here
Terrorwolf
TerrorwolfOP2w ago
try deno init package and then deno upgrade
ninjadev64
ninjadev642w ago
then here then partially here actually it was here first @ΩмεցαЯοցυε
ΩмεցαЯοցυε
would deno-git work aswell?
Terrorwolf
TerrorwolfOP2w ago
deno git is broken in the moment
ΩмεցαЯοցυε
this is gonna be ugly then...
Terrorwolf
TerrorwolfOP2w ago
maybe would a pinned commend with the workaround the way to go until deno or deno-git are working with the new version?
Terrorwolf
TerrorwolfOP2w ago
yes. If you install deno-init you need to run deno upgrade afterwards
ΩмεցαЯοցυε
yes, im putting the workaround notice into the PKGBUILD to be shown when it fails
Terrorwolf
TerrorwolfOP2w ago
and hopefulle one of the other two will be functional soon
ninjadev64
ninjadev642w ago
you could also just update to 2.1.1 until the deno package is v2
Terrorwolf
TerrorwolfOP2w ago
the normal way for "git" packages is to update to latest.
ΩмεցαЯοցυε
git packages automatically target the latest commit
ninjadev64
ninjadev642w ago
I mean for opendeck
ΩмεցαЯοցυε
im just gonna get that up to latest aswell
ninjadev64
ninjadev642w ago
you could also make a -bin package that builds from the .deb so we never have these issues again basically
ΩмεցαЯοցυε
ill do that too
Terrorwolf
TerrorwolfOP2w ago
not everyone is a fan of -bin packages build from .deb files. so its not an allround solution
ΩмεցαЯοցυε
i mean, the -git and opendeck packages do the same tho the best would be to have CI also build a generic tarball of each version
ninjadev64
ninjadev642w ago
"also"
ΩмεցαЯοցυε
should be updated now, ill make the bin package tomorrow
Terrorwolf
TerrorwolfOP2w ago
I don't know how long it should take to update in the Web, but there is still the old Version of the PKGBUILD at the git version.
ninjadev64
ninjadev642w ago
yeah
ΩмεցαЯοցυε
ah, might have forgotten to push that one then
Terrorwolf
TerrorwolfOP2w ago
Yeah. Propaply. Now it looks good to me.
ninjadev64
ninjadev642w ago
thanks @ΩмεցαЯοցυε hmm, it still seems outdated on the -git package to me also on the non-git one you still have tauri-cli as a dependency but it's no longer needed
Terrorwolf
TerrorwolfOP2w ago
for me the pkgbuild has updated to the one posted by me above.
ΩмεցαЯοցυε
weird, i didnt do anything since yesterday
Terrorwolf
TerrorwolfOP2w ago
as I see it is at both versions still the dependency. @ninjadev64 Is the cargo fetch command still necessary?
Terrorwolf
TerrorwolfOP2w ago
yeah sry. got the wrong tab.
ninjadev64
ninjadev642w ago
not “necessary” as such as it will be done automatically when the rust binary is built but separation of processes is good in packaging scripts
Terrorwolf
TerrorwolfOP2w ago
ok so cargo is a dependency then?
ninjadev64
ninjadev642w ago
rust/cargo is yeah
ΩмεցαЯοցυε
ok, should be all up now then
Terrorwolf
TerrorwolfOP2w ago
now it seems up to date. both
ninjadev64
ninjadev642w ago
awesome thanks
Percy_Ikana
Percy_Ikana2w ago
ANyone else on arch had this issue? yay -S opendeck-git
No description
ninjadev64
ninjadev642w ago
it would seem like you have an outdated PKGBUILD that error is caused by the deno cache npm:vite line with deno versions newer than 2.0 but idk how you would have both that line and a 2.0 deno
Percy_Ikana
Percy_Ikana2w ago
thanks, I got it fixed Apparently evben telling yay to clear its cache wasnt enough, I had to hunt it down and delete it
Terrorwolf
TerrorwolfOP2w ago
Same for me. I had to manually clear the opendeck-git folder from yay cache.
ΩмεցαЯοցυε
thats why i recommend paru
Want results from more Discord servers?
Add your server