LinuxProtocolRegistry class
- Inheritance
-
- Object
- ProtocolRegistryModel
- LinuxProtocolRegistry
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
ProtocolScheme scheme) → Future< bool> -
Used to add a scheme.
override
-
exists(
ProtocolScheme scheme) → Future< bool> -
Check if the scheme is already registered.
override
-
find(
ProtocolScheme scheme) → Future< String?> -
Used to get the application path of the scheme if its already registered.
override
-
findDesktopFile(
String filename) → Future< File?> -
Tries to resolve path from a
./desktopfilename. Only checks the~/.local/share/applicationsfolder. -
findDesktopFileWithScheme(
ProtocolScheme scheme) → Future< String?> -
Returns the
.desktopfilename that contains thescheme.scheme. -
getDesktopFilePath(
ProtocolScheme scheme) → String -
Returns suitable path for the scheme's
.desktopfile. -
getEntry(
ProtocolScheme scheme) → String -
Returns content of
.desktopfile with onlyNameandExec. -
installDesktopFile(
String path, ProtocolScheme scheme) → Future< void> -
Used to install a
.desktopfile. Recommended to pass path from getDesktopFilePath topath. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
ProtocolScheme scheme) → Future< bool> -
Used to remove a scheme.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited