tralph3 / Steam-Metadata-Editor

An easy to use GUI that edits the metadata of your Steam Apps
GNU General Public License v3.0
168 stars 18 forks source link

Update flatpak to latest version #53

Open ACiDxCHRiST opened 1 month ago

ACiDxCHRiST commented 1 month ago

VDF version 0x107564429 is not supported.

This error message is displayed when launching Steam Metadata Editor Flatpak after updating to new Steam beta.

Steam Beta Branch: Steam Deck Beta Steam Version: 1722380543 Steam Client Build Date: Tue, Jul 30 17:44 UTC -08:00 Steam Web Build Date: Tue, Jul 30 17:44 UTC -08:00 Steam API Version: SteamClient021

tralph3 commented 1 month ago

This issue has been fixed on the regular version already. I need to update the flatpak, but on Flathub they are asking me to remove copyrighted material from the project, so I need to change the name and icon.

Can't update untill that's done... Suggestions welcome.

ACiDxCHRiST commented 1 month ago

I can understand wanting the icon removed but the name is just what it does. I don't understand why the application would need some unique and meaningless or generic and esoteric name. Is it really a requirement that Steam can't be in the name? Considering that the only function of the application is to interact and edit a file format that is unique to Steam, something like "Game Library Metadata Editor" is too generic and doesn't readily identify that this is a tool that is only for, and inextricably linked to Steam. "VDF Metadata Editor" is esoteric and has no meaning to those outside of a small few that already understand.

Would they accept "Metadata Editor for Steam"? Even that to me seems stupid because it is less efficient and therefore even less suitable as a name, but being forced to create a unique "Brand" for an application that is so narrow in scope, is too.

SteamSpy SteamDB SteamEdit steamfiles SteamTinkerLaunch etc etc

Maybe that's what you gotta do; remove the spaces. It then becomes a new word that is not "Steam" even though those letters are in it, lol

tralph3 commented 1 month ago

I'll discuss it a bit with the flathub guys.

ACiDxCHRiST commented 3 weeks ago

I have reverted back to Steam stable and everything works fine for now. I figure we may have a week (maybe less) until Steam promotes the current beta to stable.

Before reverting to stable I did try running the "paru -Syu steam-metadata-editor-git" command but it didn't work and I got an error. It seems I need to do some research on what I need to do to get it to work. But first, I figured I would ask your advice on the best way to install the updated code on the Steam Deck in a clean way in case the beta gets promoted to stable before the Flathub situation is sorted.

I rely on this app set to run silently everytime I jump to desktop mode to keep all of my launch options updated since Steam likes to revert the changes every couple days.

tralph3 commented 3 weeks ago

@ACiDxCHRiST

I did try running the "paru -Syu steam-metadata-editor-git" command but it didn't work and I got an error

What error did you get? That should work.

ACiDxCHRiST commented 3 weeks ago

What error did you get? That should work.

:: Synchronizing package databases... error: failed to synchronize all databases (unable to lock database)

tralph3 commented 3 weeks ago

That has nothing to do with this project. When you use pacman, (or paru, in this case), it creates a .lock file. The presence of this file tells other pacman processes to not touch the database files since they are already being accessed. When the process that created the file finishes, it should delete the .lock file, and allow other processes to complete their tasks.

What you ran into, is likely the result of an interrupted update. The pacman process didn't exit cleanly, because the system was shutdown or something of the sorts, and the .lock file was never removed.

TL;DR, you have a .lock file preventing you from using pacman. Simply delete it, it should be in /etc/pacman or somewhere like that, just google it.

tralph3 commented 3 weeks ago

It's either that, or pacman is not running as root, so it can't create the file.

ACiDxCHRiST commented 3 weeks ago

That has nothing to do with this project. When you use pacman, (or paru, in this case), it creates a .lock file. The presence of this file tells other pacman processes to not touch the database files since they are already being accessed. When the process that created the file finishes, it should delete the .lock file, and allow other processes to complete their tasks.

What you ran into, is likely the result of an interrupted update. The pacman process didn't exit cleanly, because the system was shutdown or something of the sorts, and the .lock file was never removed.

TL;DR, you have a .lock file preventing you from using pacman. Simply delete it, it should be in /etc/pacman or somewhere like that, just google it.

After you asked what the error was, I decided to start looking into it and this is pretty much what I learned from researching the error. I wasn't able to find a db.lck file anywhere to delete.

I'm pretty sure the issue is the read only Steam OS.

tralph3 commented 3 weeks ago

There's a pacman.lock file aswell.

ACiDxCHRiST commented 1 day ago

The day has come. Steam released the new update that folds these beta changes into the stable branch. Is there any progress with flathub?

tralph3 commented 1 day ago

I'm very sorry but I've been busy.

I'll try to get to it when I can.

In the meantime I recommend to use the non-flatpak version.

ACiDxCHRiST commented 1 day ago
(deck@steamdeck ~)$ paru -Syu steam-metadata-editor-git
[sudo] password for deck: 
:: Synchronizing package databases...
 jupiter-3.5 is up to date
 holo-3.5 is up to date
 core-3.5 is up to date
 extra-3.5 is up to date
 community-3.5 is up to date
 multilib-3.5 is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Looking for AUR upgrades...
:: Looking for devel upgrades...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) steam-metadata-editor-git-1.0.2-4

:: Proceed to review? [Y/n]: y

:: Downloading PKGBUILDs...
 (1/1) steam-metadata-editor-git-1.0.2-4             [------------------------------------------------------------]
/home/deck/.cache/paru/clone/steam-metadata-editor-git/PKGBUILD
# Maintainer: Tomás Ralph <tomasralph2000@gmail.com>
_pkgname=Steam-Metadata-Editor
pkgver=1.0.2
pkgname=steam-metadata-editor-git
pkgrel=4
pkgdesc="A metadata editor for Steam"
arch=(any)
url="https://github.com/tralph3/Steam-Metadata-Editor.git"
license=('GPL3')
depends=(tk python)
makedepends=(git)
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "1.0.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  mkdir -pv $HOME/.local/share/${_pkgname}/config

  local licdir="$pkgdir/usr/share/licenses/${pkgname%-git}"
  local progdir="$pkgdir/opt/sme"
:: Proceed with installation? [Y/n]: y
fetching devel info...
==> Making package: steam-metadata-editor-git 1.0.2-4 (Thu 12 Sep 2024 02:22:34 PM CDT)
==> Retrieving sources...
  -> Cloning Steam-Metadata-Editor git repo...
Cloning into bare repository '/home/deck/.cache/paru/clone/steam-metadata-editor-git/Steam-Metadata-Editor'...
remote: Enumerating objects: 757, done.
remote: Counting objects: 100% (358/358), done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 757 (delta 237), reused 278 (delta 186), pack-reused 399 (from 1)
Receiving objects: 100% (757/757), 2.38 MiB | 45.00 KiB/s, done.
Resolving deltas: 100% (414/414), done.
==> Validating source files with md5sums...
    Steam-Metadata-Editor ... Skipped
==> Making package: steam-metadata-editor-git 1.0.2-4 (Thu 12 Sep 2024 02:23:32 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating Steam-Metadata-Editor git repo...
==> Validating source files with md5sums...
    Steam-Metadata-Editor ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of Steam-Metadata-Editor git repo...
Cloning into 'Steam-Metadata-Editor'...
done.
==> Starting pkgver()...
==> Updated version: steam-metadata-editor-git 1.0.2.r81.5c6ec34-1
==> Sources are ready.
steam-metadata-editor-git-1.0.2-4: parsing pkg list...
==> ERROR: Cannot find the fakeroot binary.
error: failed to build 'steam-metadata-editor-git-1.0.2-4': 
error: packages failed to build: steam-metadata-editor-git-1.0.2-4
(1)(deck@steamdeck ~)$ 

Still trying to workout how to get this installed.

tralph3 commented 1 day ago

==> ERROR: Cannot find the fakeroot binary

This seems like a you problem. Can you install other AUR packages?

ACiDxCHRiST commented 1 day ago

It's not a me problem, it's a Steam Deck problem. Just like the fact that I had to disable the steamos-readonly, and initialize the keyring, and how to use paru and exit out of the review, so that it will prompt to install. I have to read the manual for every little thing to learn why it just won't work then figure out why they still don't work because of SteamOS's immutable root filesystem.

Now I need to learn how to use and configure rwfus, Nix, or Distrobox/podman, because without some solution, all this work including Steam Metadata Editor and any other packages installed via pacman will be wiped out by the next SteamOS update.

I'll figure it out. I am just annoyed that I have to learn how all these different systems and programs work through trial and error, just to install a program. Flatpak really is a superior way of doing things on SteamOS.

tralph3 commented 1 day ago

I get that, but I can't just update the program. I need to come up with a name, logo, and make a request to allow filesystem access.

I just don't want to bother with that right now.