Giter VIP home page Giter VIP logo

Comments (6)

shobrook avatar shobrook commented on June 1, 2024

Good idea.

so I guess that's the lesser of two evils.

Yeah, so let's implement this for our MVP. If this is successful, we'll hopefully attract contributors smarter than ourselves who might have suggestions for improvement.

from deadbolt.

alichtman avatar alichtman commented on June 1, 2024

I actually totally forgot about file permissions. We're fine writing the file to disk as long as we make sure it's only readable by the owner. SSH private keys are stored on disk, too...

from deadbolt.

shobrook avatar shobrook commented on June 1, 2024

Oh, right! Idk how to set file permissions in Javascript though but we'll figure that out.

from deadbolt.

alichtman avatar alichtman commented on June 1, 2024

600 is the permission we want. rw for user, and nothing else.

const fs = require('fs');
fs.chmodSync('test.txt', '600');

from deadbolt.

alichtman avatar alichtman commented on June 1, 2024

I wish GitHub provided support for forking issues... This will need to be implemented for both the Applescript and the electron app.

Or, do we want the Applescript to be a small wrapper on the electron app? And then we only maintain one codebase?

Notes for Applescript implementation:

" Either this
do shell script "chmod / chown"

" Or this

    on open theFiles
       repeat with oneFile in theFiles
           tell application "Finder"
               tell oneFile
                   set owner privileges to read write
                   set group privileges to read write
                   set everyones privileges to read write
               end tell
           end tell
       end repeat
    end open

from deadbolt.

alichtman avatar alichtman commented on June 1, 2024

This is now irrelevant as we've decided to go with a JS-only implementation.

from deadbolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.