• 1 Post
  • 884 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle



  • Petter1@lemm.eetoSelfhosted@lemmy.worldSyncthing Android app discontinued
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 days ago

    I see, my app that I use for keepass has integrated webDAV sync where I can point it to a keepass file on the webDAV server (strongbox iOS) I just thought android keepass apps should have such feature as well.

    The iOS app of NC is slow as well, and not good enough for using to sync keepass files, but the Linux app seems to be good enough.

    And yea, just learned, that sync thing apparently works without a server but all P2P? That is 100% killer feature 😃👌🏻












  • I used this prompt

    I want to create an electron app for linux of a third party webapp

    How would I do that?

    And chatGPT gave me a good instruction, will try that out. Apparently, you only need node, electron and the javascript like this:

    
    const { app, BrowserWindow } = require('electron')
    
    function createWindow() {
      // Create the browser window
      const win = new BrowserWindow({
        width: 800,
        height: 600,
        webPreferences: {
          nodeIntegration: true
        }
      })
    
      // Load the third-party web app
      win.loadURL('https://www.thirdpartyapp.com')
    
      // Optionally remove the default menu
      win.setMenu(null)
    
      // Open DevTools (optional for debugging)
      // win.webContents.openDevTools()
    }
    
    // Run the createWindow function when Electron is ready
    app.whenReady().then(createWindow)
    
    // Quit when all windows are closed
    app.on('window-all-closed', () => {
      if (process.platform !== 'darwin') {
        app.quit()
      }
    })
    
    app.on('activate', () => {
      if (BrowserWindow.getAllWindows().length === 0) {
        createWindow()
      }
    })