Skip to content

Commit a4b87cb

Browse files
committed
Update to work with latest main pulled in
1 parent 4184f8d commit a4b87cb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

openuri/opendir.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package openuri
22

33
import (
44
"github.com/godbus/dbus/v5"
5-
"github.com/rymdport/portal"
5+
"github.com/rymdport/portal/internal/apis"
66
)
77

88
const openDirCallName = openURIBaseName + ".OpenDirectory"
@@ -16,7 +16,7 @@ func OpenDirectory(parentWindow string, fd uintptr) error {
1616

1717
data := map[string]dbus.Variant{}
1818

19-
obj := conn.Object(portal.ObjectName, portal.ObjectPath)
19+
obj := conn.Object(apis.ObjectName, apis.ObjectPath)
2020
call := obj.Call(openDirCallName, 0, parentWindow, dbus.UnixFDIndex(fd), data)
2121
return call.Err
2222
}

openuri/openfile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package openuri
22

33
import (
44
"github.com/godbus/dbus/v5"
5-
"github.com/rymdport/portal"
5+
"github.com/rymdport/portal/internal/apis"
66
)
77

88
const openFileCallName = openURIBaseName + ".OpenFile"
@@ -16,7 +16,7 @@ func OpenFile(parentWindow string, fd uintptr) error {
1616

1717
data := map[string]dbus.Variant{}
1818

19-
obj := conn.Object(portal.ObjectName, portal.ObjectPath)
19+
obj := conn.Object(apis.ObjectName, apis.ObjectPath)
2020
call := obj.Call(openFileCallName, 0, parentWindow, dbus.UnixFDIndex(fd), data)
2121
return call.Err
2222
}

trash/trash.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Package trash lets sandboxed applications send files to the trashcan.
22
package trash
33

4-
import "github.com/rymdport/portal"
4+
import "github.com/rymdport/portal/internal/apis"
55

66
const (
7-
trashBaseName = portal.CallBaseName + ".Trash"
7+
trashBaseName = apis.CallBaseName + ".Trash"
88
trashCallName = trashBaseName + ".TrashFile"
99
)

trash/trashfile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package trash
22

33
import (
44
"github.com/godbus/dbus/v5"
5-
"github.com/rymdport/portal"
5+
"github.com/rymdport/portal/internal/apis"
66
)
77

88
// TrashFile sends a file to the trashcan. Applications are allowed to trash a file if they can open it in r/w mode.
@@ -14,7 +14,7 @@ func TrashFile(fd uintptr) (uint8, error) {
1414

1515
data := map[string]dbus.Variant{}
1616

17-
obj := conn.Object(portal.ObjectName, portal.ObjectPath)
17+
obj := conn.Object(apis.ObjectName, apis.ObjectPath)
1818
call := obj.Call(trashCallName, 0, dbus.UnixFDIndex(fd), data)
1919
if call.Err != nil {
2020
return 0, err

0 commit comments

Comments
 (0)