subhra74 / snowflake

Graphical SFTP client and terminal emulator with helpful utilities
GNU General Public License v3.0
2.18k stars 234 forks source link

Support for high pixel density displays #12

Open Merlin04 opened 4 years ago

Merlin04 commented 4 years ago

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 commented 4 years ago

noted.

scriptburn commented 4 years ago

I upvote this

hreidar commented 4 years ago

same issue here, unusable with 200% scaled displays

subhra74 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

langelova commented 2 years ago

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

tuncaybahadir commented 2 years ago

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