From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [NOMERGE] New package: xdg-desktop-portal-wlr-0.1.0
Date: Sat, 13 Feb 2021 03:00:22 +0100 [thread overview]
Message-ID: <20210213020022.nGKMWWOMBFu4IZM5dqu5cI2zlA8qksoEj3B2DyjWjrk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23296@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2086 bytes --]
New comment by cinerea0 on void-packages repository
https://github.com/void-linux/void-packages/pull/23296#issuecomment-778544368
Comment:
> How do you start your session and the portal?
I start wayfire by running a script manually in a TTY after I log in. It sets some environment variables; you can see it in the collapsed section below.
<details>
<summary>startwayfire.sh</summary>
```shell
#!/bin/bash
# Functionality variables
# if $XDG_DATA_DIRS is not set, set it to the spec recommended value
[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/local/share:/usr/share"
# path for wf-config and wlroots
export LD_LIBRARY_PATH=/usr/lib/wayfire
# path is needed for wf-shell clients
PATH=$PATH
# path to find .desktop files like wcm
export XDG_DATA_DIRS=$XDG_DATA_DIRS
# maybe necessary?
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
# Display scaling
export GDK_DPI_SCALE=1.4
export QT_SCALE_FACTOR=1.4
export QT_FONT_DPI=96
export XCURSOR_SIZE=36
export XCURSOR_THEME=capitaine-cursors
# Theming
export QT_QPA_PLATFORM=wayland-egl
export QT_QPA_PLATFORMTHEME=qt5ct
export SDL_VIDEODRIVER=wayland
# Application variables
export MOZ_ENABLE_WAYLAND=1
# Logging
if [ -d "$XDG_DATA_HOME" ]; then
DEFAULT_LOG_DIR=$XDG_DATA_HOME/wayfire
else
DEFAULT_LOG_DIR=$HOME/.local/share/wayfire
fi
mkdir -p $DEFAULT_LOG_DIR
# Running
if [ $? != 0 ]; then
echo "Could not create log directory $DEFAULT_LOG_DIR"
echo "Using stdout as log"
#wayfire
#exec dbus-launch --exit-with-session wayfire
exec dbus-run-session /usr/bin/wayfire
else
LOG_FILE=$DEFAULT_LOG_DIR/wayfire.log
if [ -f $LOG_FILE ]; then
cp $LOG_FILE $LOG_FILE.old
fi
echo "Using log file: $LOG_FILE"
#wayfire &> $LOG_FILE
exec dbus-run-session /usr/bin/wayfire &> $LOG_FILE
fi
```
</details>
As for the portal, I start it through wayfire's autostart plugin. I have the following line in the `[autostart]` section of `wayfire.ini`: `portal = /usr/libexec/xdg-desktop-portal`
next prev parent reply other threads:[~2021-02-13 2:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23296@inbox.vuxu.org>
2020-08-16 2:47 ` ericonr
2020-08-16 2:54 ` sgn
2020-11-03 23:53 ` [PR REVIEW] " Logarithmus
2020-11-03 23:53 ` Logarithmus
2020-11-04 17:49 ` Chocimier
2020-11-04 17:51 ` ericonr
2020-11-04 17:53 ` Chocimier
2020-11-09 15:24 ` concatime
2020-11-23 22:58 ` [PR PATCH] [Updated] " absrd
2020-11-24 2:27 ` concatime
2020-11-25 8:51 ` [PR PATCH] [Updated] " absrd
2020-12-13 21:56 ` ericonr
2020-12-13 21:57 ` ericonr
2020-12-13 21:58 ` Logarithmus
2021-01-12 9:04 ` st3r4g
2021-01-12 11:13 ` st3r4g
2021-01-27 8:24 ` gspe
2021-02-03 16:32 ` [PR PATCH] [Updated] [NOMERGE] " absrd
2021-02-03 16:33 ` absrd
2021-02-03 16:41 ` ericonr
2021-02-11 18:39 ` cinerea0
2021-02-11 20:02 ` ericonr
2021-02-11 21:34 ` cinerea0
2021-02-11 21:49 ` ericonr
2021-02-12 16:40 ` cinerea0
2021-02-12 17:08 ` ericonr
2021-02-12 18:31 ` st3r4g
2021-02-12 19:05 ` FollieHiyuki
2021-02-13 2:00 ` cinerea0 [this message]
2021-02-15 10:00 ` travankor
2021-02-15 19:54 ` cinerea0
2021-02-18 12:35 ` [PR PATCH] [Closed]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210213020022.nGKMWWOMBFu4IZM5dqu5cI2zlA8qksoEj3B2DyjWjrk@z \
--to=cinerea0@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).