Re: QT4 apps slooooow in ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09May2012 01:45, T.C. Hollingsworth <tchollingsworth@xxxxxxxxx> wrote:
| On Wed, May 9, 2012 at 12:53 AM, Roberto Ragusa <mail@xxxxxxxxxxxxxxxx> wrote:
| > On 05/08/2012 10:18 PM, T.C. Hollingsworth wrote:
| >> The "native" graphics engine uses regular X11, which will probably
| >> always be best over SSH.
| >> Qt also respects the QT_GRAPHICSSYSTEM environment variable to
| >> configure this, so you can add `export QT_GRAPHICSSYSTEM=native` to
| >> your ~/.profile or wherever to make it your "default".
| >
| > Ok, so I have a work-around, but the default behavior is unacceptable,
| > there should be some kind of fallback to native when on a remote display,
| > maybe by automatically measuring the speed of bitmap transfers.
| 
| I doubt Qt can safely switch graphics systems midway through
| application execution.  The only way it could do anything about it is
| if it could detect whether it's being run remotely at startup, which I
| don't think is possible either.

It could inspect $DISPLAY. If it begins with ":" then it is local and
otherwise, probably remote. One could tune default choice on that basis.

| Fedora's Qt/KDE guys might be convinced to stick `[[ -n
| "${SSH_CONNECTION}" ]] && export QT_GRAPHICSSYSTEM=native` in
| /etc/profile.d, though.  (Unless there's a nicer way to change the
| environment of only SSH logins.)

It isn't ssh you want to care about, it is remoteness. And of course
QT_GRAPHICSSYSTEM should never be mangled if it is already initialised;
that way lies "magic" behaviour. (Of course, this is RedHat we're
talking about, who still believe that having $PS1 set is a meaningful
indicator of stuff; had to mangle my nice clean login procedures, many
years old, when I finally bothered tracking down that misdecision.)

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Uh, this is only temporary...unless it works.   - Red Green
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux