Skip to content

Instantly share code, notes, and snippets.

@dre1080
Created October 19, 2020 18:57
Show Gist options
  • Save dre1080/d5edfd10a16e8b8fde364ea8677da4c2 to your computer and use it in GitHub Desktop.
Save dre1080/d5edfd10a16e8b8fde364ea8677da4c2 to your computer and use it in GitHub Desktop.
megasync fix for deepin OS v20

you can fix this by adding the env variable in the launch file:

nano /usr/share/applications/megasync.desktop

and then replace Exec=megasync with Exec=env QT_SCALE_FACTOR=1 megasync

remove the TryExec line and save. you can then copy the megasync.desktop launch file to your autostart folder, e.g.:

cp /usr/share/applications/megasync.desktop ~/.config/autostart/

if you don't want to vi/nano, you can use sed:

sudo sed -i -r '/^TryExec/d;s|^(Exec=).*$|\1env QT_SCALE_FACTOR=1 megasync|g' /usr/share/applications/megasync.desktop

and then copy the changed file to your autostart folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment