Dr-Incognito / V2Ray-Desktop

最优雅的跨平台代理客户端,支持Shadowsocks(R),V2Ray和Trojan协议。The most elegant cross-platform proxy GUI client that supports Shadowsocks(R), V2Ray, and Trojan. Built with Qt5 and QML2.
GNU General Public License v3.0
1.53k stars 207 forks source link

[Bug] Can't use v2ray-desktop without superuser privilege on KDE. #4

Closed arenekosreal closed 4 years ago

arenekosreal commented 4 years ago

pacman -Qs qt5 output:

# zhanghua @ localhost in ~ [12:52:09] 
$ pacman -Qs qt5
local/appstream-qt 0.12.10-2
    Qt5 interface for AppStream
local/avahi 0.8+6+g751be80-1
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/fcitx-qt5 1.2.4-3 (fcitx-im)
    Qt5 IM Module for Fcitx
local/grantlee 5.2.0-2
    A string template engine based on the Django template system and written in Qt5
local/libaccounts-qt 1.16-1
    Qt-based client library for accessing the online accounts database
local/libdbusmenu-qt5 0.9.3+16.04.20160218-4
    A library that provides a Qt implementation of the DBusMenu spec
local/packagekit-qt5 1.0.2-1
    Qt5 bindings for PackageKit
local/phonon-qt5 4.11.1-1
    The multimedia framework by KDE
local/phonon-qt5-gstreamer 4.10.0-1
    Phonon GStreamer backend for Qt5
local/phonon-qt5-vlc 0.11.1-1
    Phonon VLC backend for Qt5
local/plasma-framework 5.67.0-2 (kf5)
    Plasma library and runtime components based upon KF5 and Qt5
local/polkit-qt5 0.113.0-1
    A library that allows developers to access PolicyKit API with a nice Qt-style API
local/poppler-qt5 0.85.0-1
    Poppler Qt5 bindings
local/python-pyqt5 5.14.1-2 (pyqt5)
    A set of Python bindings for the Qt5 toolkit
local/python-pyqt5-sip 12.7.1-1
    The sip module support for PyQt5
local/q4wine 1.3.12-1
    A Qt5 GUI for Wine
local/qca 2.3.0-1
    Qt Cryptographic Architecture
local/qt-gstreamer 1.2.0-2
    Qt bindings for GStreamer
local/qt5-base 5.14.1-2 (qt qt5)
    A cross-platform application and UI framework
local/qt5-declarative 5.14.1-1 (qt qt5)
    Classes for QML and JavaScript languages
local/qt5-graphicaleffects 5.14.1-1 (qt qt5)
    Graphical effects for use with Qt Quick 2
local/qt5-imageformats 5.14.1-1 (qt qt5)
    Plugins for additional image formats: TIFF, MNG, TGA, WBMP
local/qt5-location 5.14.1-1 (qt qt5)
    Provides access to position, satellite and area monitoring classes
local/qt5-multimedia 5.14.1-1 (qt qt5)
    Classes for audio, video, radio and camera functionality
local/qt5-networkauth 5.14.1-1 (qt qt5)
    Network authentication module
local/qt5-quickcontrols 5.14.1-1 (qt qt5)
    Reusable Qt Quick based UI controls to create classic desktop-style user interfaces
local/qt5-quickcontrols2 5.14.1-1 (qt qt5)
    Next generation user interface controls based on Qt Quick
local/qt5-script 5.14.1-1 (qt qt5)
    Classes for making Qt applications scriptable. Provided for Qt 4.x compatibility
local/qt5-sensors 5.14.1-1 (qt qt5)
    Provides access to sensor hardware and motion gesture recognition
local/qt5-speech 5.14.1-1 (qt qt5)
    Qt module to make text to speech and speech recognition easy
local/qt5-svg 5.14.1-1 (qt qt5)
    Classes for displaying the contents of SVG files
local/qt5-tools 5.14.1-1 (qt qt5)
    A cross-platform application and UI framework (Development Tools, QtHelp)
local/qt5-wayland 5.14.1-1 (qt qt5)
    Provides APIs for Wayland
local/qt5-webchannel 5.14.1-1 (qt qt5)
    Provides access to QObject or QML objects from HTML clients for seamless integration of Qt applications with HTML/JavaScript
    clients
local/qt5-webengine 5.14.1-1 (qt qt5)
    Provides support for web applications using the Chromium browser project
local/qt5-webkit 5.212.0alpha3-9
    Classes for a WebKit2 based implementation and a new QML API
local/qt5-x11extras 5.14.1-1 (qt qt5)
    Provides platform-specific APIs for X11
local/qt5-xmlpatterns 5.14.1-1 (qt qt5)
    Support for XPath, XQuery, XSLT and XML schema validation
local/signond 8.60-1
    A D-Bus service which performs user authentication on behalf of its clients
local/sonnet 5.67.0-1 (kf5)
    Spelling framework for Qt5

My desktop environment is KDE Plasma 5.18.2, if I start this program directly, the Servers tab, Rules tab and Settings tab are empty just like these pictures: rules tab servers tab settings tab However, if I start it with root privilege by executing sudo /opt/v2ray-desktop/v2ray-desktop , the program works very well. Can anyone help me? Thanks.

Dr-Incognito commented 4 years ago

Thank you for providing details of this issue. It seems that the issue is highly related to #2. I'll test the application on KDE ASAP.