snowflake icon indicating copy to clipboard operation
snowflake copied to clipboard

Support for high pixel density displays

Open Merlin04 opened this issue 5 years ago • 12 comments

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

Merlin04 avatar Jan 30 '20 03:01 Merlin04

noted.

subhra74 avatar Jan 30 '20 09:01 subhra74

I upvote this

scriptburn avatar Jan 30 '20 15:01 scriptburn

same issue here, unusable with 200% scaled displays

hreidar avatar Feb 02 '20 12:02 hreidar

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

subhra74 avatar Feb 02 '20 14:02 subhra74

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?

shawnbyday avatar Aug 16 '20 04:08 shawnbyday

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

tuncaybahadir avatar Jan 09 '21 21:01 tuncaybahadir

@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?

langelova avatar Jan 18 '22 10:01 langelova

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.

lrkwz avatar Jan 18 '22 13:01 lrkwz

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

langelova avatar Jan 20 '22 08:01 langelova

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

tuncaybahadir avatar Jan 24 '22 09:01 tuncaybahadir

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

langelova avatar Jan 24 '22 09:01 langelova

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

tuncaybahadir avatar Jan 24 '22 09:01 tuncaybahadir