Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for high pixel density displays #12

Open
Merlin04 opened this issue Jan 30, 2020 · 12 comments
Open

Support for high pixel density displays #12

Merlin04 opened this issue Jan 30, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@Merlin04
Copy link

I have display scaling on Ubuntu set to 200% (my laptop screen is 4k so if I didn't, everything would be really small), but this doesn't work on Snowflake:
screenshot

@subhra74
Copy link
Owner

noted.

@subhra74 subhra74 added the bug Something isn't working label Jan 30, 2020
@scriptburn
Copy link

I upvote this

@hreidar
Copy link

hreidar commented Feb 2, 2020

same issue here, unusable with 200% scaled displays

@subhra74
Copy link
Owner

subhra74 commented Feb 2, 2020

Till the issue is fixed, you can use below work around:
Set scale factor via command line:
java -Dsun.java2d.uiScale=2.5 -jar snowflake.jar

If you have installed snowflake from the deb file then use below command:
/out/snowflake/java-runtime/bin/java -Dsun.java2d.uiScale=2.5 -jar /out/snowflake/snowflake.jar

@shawnbyday
Copy link

shawnbyday commented Aug 16, 2020

Till the issue is fixed, you can use below work around:
Set scale factor via command line:
java -Dsun.java2d.uiScale=2.5 -jar snowflake.jar

If you have installed snowflake from the deb file then use below command:
/out/snowflake/java-runtime/bin/java -Dsun.java2d.uiScale=2.5 -jar /out/snowflake/snowflake.jar

Deb file command: java -Dsun.java2d.uiScale=2.5 -jar /opt/snowflake/snowflake.jar

Are there command line arguments we can pass to snowflake from the launcher icon to do this for us so we don't have to launch it from a terminal?

@tuncaybahadir
Copy link

Till the issue is fixed, you can use below work around:
Set scale factor via command line:
java -Dsun.java2d.uiScale=2.5 -jar snowflake.jar
If you have installed snowflake from the deb file then use below command:
/out/snowflake/java-runtime/bin/java -Dsun.java2d.uiScale=2.5 -jar /out/snowflake/snowflake.jar

Deb file command: java -Dsun.java2d.uiScale=2.5 -jar /opt/snowflake/snowflake.jar

Are there command line arguments we can pass to snowflake from the launcher icon to do this for us so we don't have to launch it from a terminal?

of course there is :)
Turn on the console, then execute the commands below.

sudo su
nano /usr/bin/snowflake

next
java -Dsun.java2d.uiScale = 2.5 -jar /opt/snowflake/snowflake.jar
Add it as a new line and add # at the beginning of the previous command or into the current query.
-Dsun.java2d.uiScale = 2.5
Add the parameter, save and exit, that's it.

resim

@langelova
Copy link

@tuncaybahadir I have tried these steps and nothing changed in the UI. I have snowflake installed on my Ubuntu 21.10 from snap. Do you have maybe other suggestions?

@lrkwz
Copy link

lrkwz commented Jan 18, 2022

I wish to use the snap install; how can I set -Dsun.java2d.uiScale=2.5 ?

The file meta/snap.yaml looks like the right place but it is located on a read-only squashfs mount point.

@langelova
Copy link

I managed to fix the problem by editing a file named snowflake_snowflake.desktop. I have replaced the end of the line starting with "Exec" with java -Dsun.java2d.uiScale=2.5 -jar /snap/snowflake/2/jar/snowflake-1.0.4-full.jar
image

@tuncaybahadir
Copy link

@langelova I haven't tried it on 21.10 yet I'll try to help if I can.

@langelova
Copy link

@tuncaybahadir Thanks but I already found a solution, it is described above.

@tuncaybahadir
Copy link

@langelova I didn't notice :) I'm glad the problem is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants