Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/cs/improve windows compatiblity #262

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions imessage-database/src/util/dirs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use std::{env::var, path::PathBuf};
use crate::tables::table::DEFAULT_PATH_MACOS;

/// Get the user's home directory (macOS only)
///
///
/// # Panics
///
///
/// Will panic if the environment variable `$HOME` is missing.
///
/// # Example:
Expand All @@ -21,10 +21,7 @@ use crate::tables::table::DEFAULT_PATH_MACOS;
/// println!("{path}");
/// ```
pub fn home() -> String {
match var("HOME") {
Ok(path) => path,
Err(why) => panic!("Unable to resolve user home directory: {why}"),
}
var("HOME").unwrap_or_default()
}

/// Get the default path the macOS iMessage database is located at (macOS only)
Expand Down
5 changes: 5 additions & 0 deletions imessage-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ The [releases page](https://github.com/ReagentX/imessage-exporter/releases) prov

-m, --custom-name <custom-name>
Specify an optional custom name for the database owner's messages in exports
Conflicts with --use-caller-id

-i, --use-caller-id
Use the database owner's caller ID in exports instead of "Me"
Conflicts with --custom-name

-b, --ignore-disk-warning
Bypass the disk space check when exporting data
Expand Down
2 changes: 1 addition & 1 deletion imessage-exporter/src/exporters/resources/example.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<meta charset="UTF-8">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" type="text/css" href="style.css">

Expand Down
Loading