Skip to content

Conversation

@Amumug
Copy link
Collaborator

@Amumug Amumug commented Dec 30, 2025

@Parth i created file for the flatpak builder org.lockbook.Lockbook.json and the one that we will push on flathub org.lockbook.Lockbook.template.json that's what wezterm did. and i created lockbook.appdata.xml but i don't have any idea what we put there.

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also not sure what goes here, you'll have to read a bit more

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know what we need to put on this file so that's why i put that line there wezterm example

Copy link
Member

@Parth Parth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious if this works on your system

@@ -0,0 +1,52 @@
{
"app-id": "org.lockbook.Lockbook",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to use net.lockbook.Lockbook we own https://lockbook.net, and don't have .org.

Comment on lines +11 to +19
"--share=ipc",
"--filesystem=home:ro",
"--filesystem=xdg-config/wezterm",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--talk-name=org.freedesktop.Flatpak",
"--talk-name=org.freedesktop.Notifications",
"--share=network"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs more scrutiny, most of these are not valid for lockbook

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i copied them from wezterm and before i read on the flatpak docs here

finish-args:
  # X11 + XShm access
  - --share=ipc
  - --socket=fallback-x11
  # Wayland access
  - --socket=wayland
  # GPU acceleration if needed
  - --device=dri
  # Needs to talk to the network:
  - --share=network
  # Needs to save files locally
  - --filesystem=xdg-documents

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a feeling that this is a file that wezterm uses to generate the json file we're dealing with above, you should verify this, but I think if you look at those files that you linked me initially you'll find them using this template to substitute in the values for @URL@.

@Amumug
Copy link
Collaborator Author

Amumug commented Dec 30, 2025

@Parth i created a new rust project for testing the app
next TODO

  • add modules

@Amumug
Copy link
Collaborator Author

Amumug commented Dec 31, 2025

@Parth i used this doc here to build the file

@Amumug Amumug merged commit d7dff64 into main Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants