-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
526d311
commit e5c2c8c
Showing
8 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,3 +221,5 @@ def to_json(*options) | |
end | ||
end | ||
end | ||
|
||
require "extend/os/cask/config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,3 +266,5 @@ def self.app_management_permissions_granted?(app:, command:) | |
end | ||
end | ||
end | ||
|
||
require "extend/os/cask/quarantine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
require "extend/os/linux/cask/config" if OS.linux? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
require "extend/os/linux/cask/quarantine" if OS.linux? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
module OS | ||
module Linux | ||
module Cask | ||
module Config | ||
extend T::Helpers | ||
|
||
requires_ancestor { ::Cask::Config } | ||
|
||
DEFAULT_DIRS = T.let({ | ||
vst_plugindir: "~/.vst", | ||
vst3_plugindir: "~/.vst3", | ||
fontdir: "#{ENV.fetch("XDG_DATA_HOME", "~/.local/share")}/fonts", | ||
appdir: nil, | ||
keyboard_layoutdir: nil, | ||
colorpickerdir: nil, | ||
prefpanedir: nil, | ||
qlplugindir: nil, | ||
mdimporterdir: nil, | ||
servicedir: nil, | ||
dictionarydir: nil, | ||
screen_saverdir: nil, | ||
input_methoddir: nil, | ||
internet_plugindir: nil, | ||
audio_unit_plugindir: nil, | ||
}.freeze, T::Hash[Symbol, T.nilable(String)]) | ||
end | ||
end | ||
end | ||
end | ||
|
||
Cask::Config.prepend(OS::Linux::Cask::Config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
module OS | ||
module Linux | ||
module Cask | ||
module Quarantine | ||
extend T::Helpers | ||
|
||
requires_ancestor { ::Cask::Quarantine } | ||
|
||
sig { returns(Symbol) } | ||
def self.check_quarantine_support | ||
:linux | ||
end | ||
|
||
sig { returns(T::Boolean) } | ||
def self.available? | ||
false | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
||
Cask::Quarantine.prepend(OS::Linux::Cask::Quarantine) |