Comments (6)
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.
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.
Oh, right! Idk how to set file permissions in Javascript though but we'll figure that out.
from deadbolt.
600
is the permission we want. rw
for user, and nothing else.
const fs = require('fs');
fs.chmodSync('test.txt', '600');
from deadbolt.
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.
This is now irrelevant as we've decided to go with a JS-only implementation.
from deadbolt.
Related Issues (20)
- Add autoupdater? HOT 1
- Make quicklock the default opener for .qlock files
- Handle incorrect password error
- macOS Right-Click to Encrypt File
- npm install deadbolt-app HOT 1
- Double click .dbolt file to open in Deadbolt
- brew cask install HOT 1
- Open from command line `$ deadbolt file`
- AppImage for Linux HOT 1
- Snap for Linux HOT 4
- Drag file to deadbolt icon should open file in deadbolt
- Windows release script needed HOT 1
- [Feature Request] Password Hints
- [Feature Request] MacOS Icon Update
- `deadbolt` no longer builds
- `sendSync` is not a function error when encrypting a file
- Why is `libappindicator3-1` being recommended as a dep for the `.deb` as of `v1.0.0`?
- Update homebrew cask to install `v1.0.0`
- Mission icon for `.deb` artifact
- Use Tauri
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deadbolt.