Skip to content

Commit

Permalink
Fixing up
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 24, 2024
1 parent 0901cfd commit 856c599
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
13 changes: 12 additions & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ libexecdir_conf = configuration_data()
libexecdir_conf.set('libexecdir', prefix / libexecdir)

# Portal
tau_portal_interfaces = [
'org.freedesktop.impl.portal.Settings',
]
tau_portal_conf = configuration_data()
tau_portal_conf.set('PORTALS', ';'.join(tau_portal_interfaces))

portal_dir = datadir / 'xdg-desktop-portal' / 'portals'
install_data('tau.portal', install_dir: portal_dir)
configure_file(
input: 'tau.portal.in',
output: 'tau.portal',
configuration: tau_portal_conf,
install_dir: portal_dir,
)

# Service
configure_file(
Expand Down
2 changes: 1 addition & 1 deletion data/org.freedesktop.impl.portal.desktop.tau.service.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[D-BUS Service]
Name=org.freedesktop.impl.portal.desktop.tau
Exec=@libexecdir@/xdg-desktop-portal-tau
SystemdService=xdg-desktop-portal-tau.service
SystemdService=xdg-desktop-portal-tau.service
4 changes: 0 additions & 4 deletions data/tau.portal

This file was deleted.

4 changes: 4 additions & 0 deletions data/tau.portal.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[portal]
DBusName=org.freedesktop.impl.portal.desktop.tau
Interfaces=@PORTALS@;
UseIn=gnome;
6 changes: 3 additions & 3 deletions data/xdg-desktop-portal-tau.desktop.in.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Name=Portal
# TRANSLATORS: Don't translate this text (this is icon name)
Name=tauOS Portal
# TRANSLATORS: Don't translate this text (this is the icon name)
Icon=applications-system-symbolic
Exec=@libexecdir@/xdg-desktop-portal-tau
NoDisplay=true
NoDisplay=true
5 changes: 4 additions & 1 deletion data/xdg-desktop-portal-tau.service.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[Unit]
Description=Portal service (tauOS implementation)
After=graphical-session.target
Requisite=graphical-session.target
PartOf=graphical-session.target

[Service]
Type=dbus
BusName=org.freedesktop.impl.portal.desktop.tau
ExecStart=@libexecdir@/xdg-desktop-portal-tau
ExecStart=@libexecdir@/xdg-desktop-portal-tau

0 comments on commit 856c599

Please sign in to comment.