NicoVarg99 / MEGA-Instances

This script will help you running multiple MEGA (megasync) instances.
GNU General Public License v3.0
39 stars 11 forks source link

Allow override other envirment like QT_SCREEN_SCALE_FACTORS=1 #7

Open galaxy001 opened 5 years ago

galaxy001 commented 5 years ago

I find MEGAsync will be twice large on HiDPI screen with QT_SCREEN_SCALE_FACTORS=2.

It can be fixed by add QT_SCREEN_SCALE_FACTORS=1 at your HOME setting line.

I wonder if you can add environments overrides from a file like ~/.config/megasync-instances/env ?

NicoVarg99 commented 5 years ago

Each instance uses the same environment variables defined for your system. Is QT_SCREEN_SCALE_FACTORS properly set in your system? Does it only affect megasync and not megasync-instances? Please provide a screenshot showing the difference between running Mega with and without my script.

galaxy001 commented 5 years ago

Manjaro Linux, KDE Plasma

QT_SCREEN_SCALE_FACTORS=1 megasync m1

megasync m2

galaxy001 commented 5 years ago

With megasync-instances

m3

$ xrandr 
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   3840x2160     60.00*+  59.97  
   3200x1800     59.96    60.00    59.94  
   2880x1620     60.00    59.96    59.97
NicoVarg99 commented 5 years ago

It seems like QT_SCREEN_SCALE_FACTORS is not set in your environment variables. You should either add it to your environment variables or try to execute my script as "QT_SCREEN_SCALE_FACTORS=1 megasync-instances"

sequiconsulting commented 4 years ago

Qt: Session management error: None of the authentication protocols specified are supported Setting QT_SCREEN_SCALE_FACTORS= "DisplayPort-0=1;DisplayPort-1=1;DisplayPort-2=1;DisplayPort-3=1;DisplayPort-4=1" Qt: Session management error: None of the authentication protocols specified are supported This tool has been deprecated, use 'gio set' instead. See 'gio help set' for more info.

sequiconsulting commented 4 years ago

Got the above error on Ubuntu 18.04 x64 and 5 displays. "MEGA-Instances is not configured. Will now start the configuration." freezes and does not further proceed after the first instance.

NicoVarg99 commented 4 years ago

@sequiconsulting you have to close each instance after its configuration is done (right click on MEGA icon -> Exit)