-
Notifications
You must be signed in to change notification settings - Fork 2
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
Settings can't be accessed using v1.1.3 Linux binary #17
Comments
Thanks for bringing this up. I've removed the Linux binaries from Releases until I can upload some confirmed-to-be-working ones. In the meantime, these instructions about |
@logix2 Would you be able to compile temps-lite as a Rust project, if provided with the source? It would not be a monumental task to convert this into something that could be compiled via Rust. |
Yes, I can do that. However, I'm interested in this not for me but for my blog (https://www.linuxuprising.com). For that I'll wait for the binary, users usually expect that. |
Great! Here is the "port". I hope we can figure out how to overcome those little roadbumps listed in the readme. If you manage to build it perhaps you can share the binary so we can add it to the Releases. I will add you as a collaborator and I encourage you to add a link to your blog in the readme (this repo; the other will be merged into this one if it works out). |
Thank you! I'll try to build it right now. |
Hmmm I have no idea how to convert this code to work on Linux:
I know my way around Linux, but I'm not a programmer. I tried this:
And I was able to create a binary. But it doesn't have an icon. |
A workaround for this would be to ship a .desktop file for Linux and install the icon. This way the application has an icon (and an applications menu entry). I can create a script to install everything in the right place if you're ok with using this. The app would then have an icon and integrate with the applications menu: |
2 more things:
|
I'm glad to here you were able to compile it, I've little experience with Linux and had no idea how close the code was to "just works". The "Start at login" option doesn't do anything on Windows either, yet. I'll try to make the app copy a shortcut of itself to On Windows the "Show weather in the menu bar" option does display/hide the tray icon, set to the current weather icon with a tooltip on mouse-over describing the weather and temperature. Will have to investigate why this doesn't do anything on Linux. @papioara Would you be interested in testing this binary just to confirm it also works on your Linux distribution? |
For the current user, you need to add a temps-lite.desktop file in ~/.config/autostart with the following contents, editing the Exec and Icon values:
|
Yes, of course! Where again can I find that binary? |
You can get it using:
The binary is built on Ubuntu 20.10. If it doesn't work, I may need to build it on an older Ubuntu version. I can do that, just let me know (it will take a while since I'm a bit busy right now). |
I have downloaded it, but I do not know what to do with it ;-/ Maybe this is a stupid question, but my system just 'shrugs' as well asking me with what it should open the file or run it. |
Talking about 'Start at login': the temps-lite on my computer does not seem to care about it. If I check the option and click 'Apply:, the check mark is there. If I close temps-lite and launch it again, the check mark is gone. No wonder I never see it after logging in. It seems that on 'Quit' the check mark is 'forgotten'. |
Open a terminal, navigate to the folder where
Then run it:
|
Ah, this is just a shell script? |
Ran it and got the following error: |
It's not a shell script, but you probably tried to run the binary without making it executable. It should also work to double click it once it's executable... when it works. It looks like you're using a Linux distribution with older libraries, that's why it didn't work for you. I'll build it on an older Ubuntu and it will hopefully work for you. I'll do it probably tomorrow or on Monday. |
Ok, that was just a guess that it might be a shell script, because in Terminal you run a shell script by typing '/.' before the name of the file. I did make it executable before, so the error has nothing to do with that, and I am on Linux Mint 20.1 Cinnamon which is LTS, but otherwise the most recent version. Or do you know how to get that library? At least the package management does not offer it when you look for it. But if you could build it, that would be great, of course. Which Ubuntu do you use? I could also try and boot from a live DVD with that Ubuntu version for instance and try again. What would you think? |
Well, I did have "autostart" in the "Todo" section 😄 https://github.com/GirkovArpa/temps-lite#todo- But @4silvertooth has added Linux autostart functionality with this commit. I've also added it for Windows here but that is a different repository slightly reworked that can only be compiled with Rust, because I'm using native code to modify the Windows Registry. I need to merge the two repositories but first I should ask, are you okay with having to run the program via Rust like Of course the compiled binary will not require scapp or Rust. I just don't want to introduce excessive complications when testing. |
I couldn't build the latest git, I got an error saying that "winreg is only supported on Windows". So I had to pull a previous commit to build it. This build was done on Ubuntu 20.04. Since Linux Mint 20.* is based on Ubuntu 20.04, it should work now. Get it with (make sure you don't have the old version still saved in the same place):
Then make it executable:
And run it:
|
This one works flawlessly... |
I am using this one to tell me about the weather at the moment ;-) |
Using the v1.1.3 Linux binary, I can't access settings like temperature scale, time format, etc., as you can see in this screenshot:
I assume I'd have to make the window larger or scroll horizontally to access these settings, but this doesn't seem to be possible.
Edit: I'm using the app on Ubuntu 20.10 with the Gnome desktop, in case it matters.
The text was updated successfully, but these errors were encountered: