Skip to content

Commit 392d99c

Browse files
committed
Add README info on disabling portals
Resolves #88.
1 parent 1e6d3bd commit 392d99c

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ command = "sway --config /path/to/custom/sway/config"
154154
user = "greeter"
155155
```
156156

157-
**NOTE**: If you find that ReGreet takes too much time to start up with Sway, you may be affected by this: [swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start](https://github.com/swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start).
158-
See this link for the fix.
159-
Alternatively, the solution proposed in [issue #34](https://github.com/rharish101/ReGreet/issues/34) may resolve it.
160-
161157
If using Hyprland, create a Hyprland config file (in a path such as `/etc/greetd/hyprland-config`) as follows:
162158
```
163159
exec = sh -c "regreet; hyprctl dispatch exit"
@@ -177,6 +173,25 @@ user = "greeter"
177173

178174
Restart greetd to use the new config.
179175

176+
#### Startup delays
177+
If you find that ReGreet takes too much time to start up, you may be affected by this: [swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start](https://github.com/swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start).
178+
See this link for the fix.
179+
Alternatively, the solution proposed in [issue #34](https://github.com/rharish101/ReGreet/issues/34) may resolve it.
180+
181+
As another option, you can disable portals by exporting environment variables for the Wayland compositor launched for ReGreet.
182+
Simply prepend `env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals` to the start of the default session command in `greetd.toml`.
183+
For example, with Cage, the session command would be:
184+
```toml
185+
[default_session]
186+
command = "env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals cage -s -mlast -- regreet"
187+
```
188+
189+
If using Hyprland, you can also append the following lines to the Hyprland config for ReGreet:
190+
```
191+
env = GTK_USE_PORTAL,0
192+
env = GDK_DEBUG,no-portals
193+
```
194+
180195
### Configuration
181196
The configuration file must be in the [TOML](https://toml.io/) format.
182197
By default, it is named `regreet.toml`, and located in the greetd configuration directory specified during compilation (`/etc/greetd/` by default).

0 commit comments

Comments
 (0)