Closed Zedbyte-corp closed 6 months ago
@Zedbyte-corp can you confirm, that the fsSize()
function works outside of electron on your machine?
const si = require('systeminformation');
si.fsSize().then(data => console.log(data));
Does this produce meaningful output? If yes, I suppose that this is not a problem related to systeminformation
@Zedbyte-corp can you confirm, that the
fsSize()
function works outside of electron on your machine?const si = require('systeminformation'); si.fsSize().then(data => console.log(data));
Does this produce meaningful output? If yes, I suppose that this is not a problem related to
systeminformation
it produces correct output, but in electron production build it doesn't. Also im getting rw param as null for all drives in mas build.
Could not start up a DiskManagement session
drives [{"fs":"/dev/disk1s5s1","type":"HFS","size":250685575168,"used":10122358784,"available":23591677952,"use":30.02,"mount":"/","rw":null},{"fs":"/dev/disk1s2","type":"HFS","size":250685575168,"used":2173759488,"available":23591677952,"use":8.44,"mount":"/System/Volumes/Preboot","rw":null},{"fs":"/dev/disk1s4","type":"HFS","size":250685575168,"used":24576,"available":23591677952,"use":0,"mount":"/System/Volumes/VM","rw":null},{"fs":"/dev/disk1s6","type":"HFS","size":250685575168,"used":11665408,"available":23591677952,"use":0.05,"mount":"/System/Volumes/Update","rw":null},{"fs":"/dev/disk1s1","type":"HFS","size":250685575168,"used":213419753472,"available":23591677952,"use":90.05,"mount":"/System/Volumes/Data","rw":null}]
@Zedbyte-corp can you pass the same drive parameter to the sample code above (outside electron)?
Add this entitlement
<key>com.apple.security.files.downloads.read-write</key>
<true/>
even though you have this
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
the irony
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Current Output 'could not start up a diskmanagement session'
Expected behavior Need to access fsSize() in production build with all the disk properties
Environment (please complete the following information):
To get all needed environment information, please run the following command: