Skip to content

Commit

Permalink
Better naming convention to avoid collisions.
Browse files Browse the repository at this point in the history
Also, some copy fixes and version update.
  • Loading branch information
archagon committed Apr 30, 2018
1 parent b72966b commit ce79818
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions BackgroundifierCompanion/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate
var data: (name: String, folder: String, cycling: Bool)!

var currentUrl: URL? { return URL.init(fileURLWithPath: (data.folder as NSString).appendingPathComponent(data.name)) }
var originalUrl: URL? { return AppDelegate.urlForKey(.sourcePath)?.appendingPathComponent(data.name) }
var originalUrl: URL? { return AppDelegate.urlForKey(.sourcePath)?.appendingPathComponent(data.name).deletingPathExtension() }

let conn = _CGSDefaultConnection()
var monitor: FileChangeMonitor?
Expand Down Expand Up @@ -671,7 +671,7 @@ extension AppDelegate
return false
}

let out = outputUrl.appendingPathComponent(file.lastPathComponent).deletingPathExtension().appendingPathExtension("jpg")
let out = outputUrl.appendingPathComponent(file.lastPathComponent).appendingPathExtension("jpg")

// TODO: figure out how to expand sandbox to include output folder
let task = Process()
Expand Down
4 changes: 2 additions & 2 deletions BackgroundifierCompanion/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.5</string>
<string>0.5.1</string>
<key>CFBundleVersion</key>
<string>3</string>
<string>4</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
Loading

0 comments on commit ce79818

Please sign in to comment.