Code Monkey home page Code Monkey logo

Comments (14)

wengxt avatar wengxt commented on July 26, 2024 1

你好,偶然见我发现我的问题好像已经解决了,我需要给每个应用都打开Dbus会话总线。

这不应该啊,他们都应该使用 org.freedesktop.portal通过xdg dbus proxy穿透沙盒

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

这是我在Hyprland设置的环境变量,可能是这里出错了吗。我有几个没有按照维基的变量填写,用的别人的配置文件里的变量,我还是想保守一些。
env = QT_IM_MODULE, fcitx
env = XMODIFIERS, @im=fcitx
#env = GTK_IM_MODULE, wayland # Crashes electron apps in xwayland,例如出现漏字的情况(但是我的Electron还是漏字)
env = GTK_IM_MODULE, fcitx # My Gtk apps no longer require this to work with fcitx5 hmm
env = SDL_IM_MODULE, fcitx
env = GLFW_IM_MODULE, ibus
env = INPUT_METHOD, fcitx
麻烦您了

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

你好,偶然见我发现我的问题好像已经解决了,我需要给每个应用都打开Dbus会话总线。

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

是与xdg-desktop-portal有关吗,我装的Hyprland和gtk版本,文件选择器可以正常运行。这个东西需要手动启动吗。我还注意到,我电脑里有xdg-dbus-proxy包。我需要反馈什么信息或者去哪里发起提问嘛。好像我之前用arch时候,大部分应用不用开dbus会话总线也可以正常启动。但在gentoo,频频报错,之后我自己乱试,试出来的。

from fcitx5.

wengxt avatar wengxt commented on July 26, 2024

你进行了什么操作?

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

类似添加环境变量,把想装在flatpak的软件安装进系统,这些软件在系统中能调用输入法,上面我贴了在Hyprland内设置的变量。之后在flatseal中每个按钮的开开关关,最后设置是和flatseal默认的权限设置一样,只是都打开了dbus会话总线。之后就没有更多操作了。

from fcitx5.

wengxt avatar wengxt commented on July 26, 2024

什么开关,哪个开关

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

51ff2f9c-fa28-4e18-9fe5-97988738839a.png

例如QQ,其余应用也一样我只打开了Dbus会话总线这个开关

from fcitx5.

wengxt avatar wengxt commented on July 26, 2024

你不应当需要 flatpak 程序可以访问完全的 dbus session 服务

flatpak run --command=sh org.gnucash.GnuCash

关掉开关,用上面的命令进入任意的 flatpak app 的 container

运行 dbus-send --session --dest=org.freedesktop.DBus --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames

能看到输出中包含 org.freedesktop.portal.Fcitx 吗?
method return time=1714009650.979414 sender=org.freedesktop.DBus -> destination=:1.7742 serial=4294967295 reply_serial=2
array [
string "org.freedesktop.DBus"
string ":1.7"
string ":1.8"
string ":1.23"
string ":1.345"
string ":1.4265"
string ":1.4739"
string ":1.4741"
string ":1.4743"
string ":1.4883"
string ":1.7689"
string ":1.7690"
string ":1.7742"
string "org.freedesktop.portal.Desktop"
string "org.freedesktop.portal.Documents"
string "org.freedesktop.portal.Fcitx"
string "org.freedesktop.portal.IBus"
string "org.gtk.vfs.Daemon"
string "org.gtk.vfs.Metadata"
string "org.gtk.vfs.UDisks2VolumeMonitor"
string "org.gtk.vfs.mountpoint_228449"
string "org.gtk.vfs.mountpoint_228469"
string "org.gtk.vfs.mountpoint_dnssd"
string "org.gtk.vfs.mountpoint_http"
]

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

报错了:[📦 org.gnucash.GnuCash ~]$ dbus-send --session --dest=org.freedesktop.DBus --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames
Failed to open connection to "session" message bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

from fcitx5.

wengxt avatar wengxt commented on July 26, 2024

你的系统不设置 DBUS_SESSION_BUS_ADDRESS 的吗

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

我还不知道这个地方,完全按照维基配置的,没有注意到这里

from fcitx5.

wengxt avatar wengxt commented on July 26, 2024

你先看看你在 host 上有没有这个环境变量

一种可能,你没有用 systemd,或者没有用 pam_systemd 只要用 systemd 的发行版都不会有这个问题
如果你没有用 systemd 的,那你可能也没有启动 session bus,或者启动了,但是没有设置 DBUS_SESSION_BUS_ADDRESS

你自己看看你属于哪种情况

from fcitx5.

akeauoupolee avatar akeauoupolee commented on July 26, 2024

确实,我用的openrc,关于dbus这里我也没有配置,我在我的启动脚本上改用dbus-run-session Hyprland,一切都正常了,十分谢谢你的帮助😄😄😄

from fcitx5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.