|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Help needed from Mac user
How are full file paths defined in the Mac world? (i.e. The Mac equivalent of C:\blah\blah\file.exe in Windows.)
Rudimentary question, but I've rarely used Macs and never programmed on them.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#2
|
|||
|
|||
Quote:
If you are just wanting a answer to how I believe they are more like /location/exe. |
#3
|
|||
|
|||
They are similar to Linux.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#4
|
||||
|
||||
I'm trying to figure out what parameter to use for GetDiskFreeSpace(). In Windows you use GetDiskFreeSpace("C:"). I haven't fooled with linux yet but I'm assuming it will be "/dev/xx".
I have no clue on what to even try for Mac. I know the Mac OS is unix-based, but that's about it. I'd like to make the plugin I'm working on Mac friendly but I have no way to test it. Tom
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#5
|
|||
|
|||
On my Mac, / is mounted as: /dev/disk0s2
I think that will be consistent. B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#6
|
||||
|
||||
Assuming that GetDiskFreeSpace() actually takes "/dev/xxx" as a parameter!
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#7
|
|||
|
|||
If it works on Linux, it should work in OS X. I have 10.6 and can test if you need something, but I don't run SageTV on it. So maybe a jar file I can run separately.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#8
|
||||
|
||||
I found a very easy, platform independent, way to do this directly in Studio:
f = GetDefaultSTVFile() TotalSpace = java_io_File_getTotalDiskSpace(f) FreeSpace = java_io_File_getUsableSpace(f) This should get the size of the disk where Sage is installed and how much space is on it. No need to mess around with GetDiskFreeSpace at all. Tom
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New HD Theater user - help needed | Hawke | SageTV Beta Test Software | 1 | 01-24-2010 04:17 AM |
Tips for a Newbie Mac User? | reggie14 | The SageTV Community | 0 | 03-09-2009 11:20 PM |
Beta Testers needed for SageTV for Mac OS X!! | Narflex | SageTV Beta Test Software | 39 | 04-11-2007 03:47 PM |
New SageTV User help needed | gavineg | SageTV Software | 2 | 04-01-2007 12:21 PM |
Sage TV/Mac user poll | soulprops77 | General Discussion | 6 | 07-18-2006 01:38 PM |