owlysk / CodeTimer

Timer Widget for Kimai Time Tracking
MIT License
21 stars 2 forks source link

Provide AppImage releases for Linux #9

Open CodeShakingSheep opened 7 months ago

CodeShakingSheep commented 7 months ago

Hi, I just came across CodeTimer and the first impression is great. Thank you for this project! I have one request. I would like to have Appimage releases for Linux for more convenience. Could you possibly provide Appimages with new releases?

owlysk commented 7 months ago

Hi, I am affraid that there is a issue with saving setting. AppImage format has read-only file system and CodeTimer (NeutralinoJS) needs to have permission to write setting and cache files (similiar issue was in macOS bundle https://github.com/owlysk/CodeTimer/issues/1#issuecomment-1629208888) NeutralinoJS has not option to set location of these files yet - https://github.com/neutralinojs/neutralinojs/issues/1112, so I can't set location of this files outside app bundle.

Deb package will not work for you?

CodeShakingSheep commented 7 months ago

Hi, Thanks for getting back to this. I understand the problem regarding NeutralinoJS and AppImage format. I guess a deb package would work for me too.

However, even more convenient would be to use a flatpak. Would it be possible to provide the app on Flathub? I know that this requires some work to submit the app to Flathub repositories. But could be worth it also to increase popularity. When searching for Kimai on Flathub there are no relevant results to be found. Would be cool if CodeTimer would fill this gap. What do you think?

owlysk commented 7 months ago

Interesting idea and I like it, I'll have a look at the flatpak and let you know.

owlysk commented 6 months ago

I am sorry, I was not able to make flatpak work. I will come back to this issue in a future

CodeShakingSheep commented 6 months ago

I am sorry, I was not able to make flatpak work. I will come back to this issue in a future

Ok, do you want to share what was the obstacle? And instead of a Flatpak could you provide a deb package in the meantime?

owlysk commented 6 months ago

I think there was something with dependencies. I tried to manually add some system libraries, but I got this error:

flatpak run sk.owly.CodeTimer 
Gtk-Message: 21:24:47.376: Failed to load module "canberra-gtk-module"
Gtk-Message: 21:24:47.379: Failed to load module "canberra-gtk-module"
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
failed to load driver: zink

** (CodeTimer-linux_x64:2): ERROR **: 21:24:47.888: Unable to spawn a new child process: Zlyhalo vytvorenie dcérskeho procesu „/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitNetworkProcess“ (Adresár alebo súbor neexistuje)

I think error is caused by libwebkit2gtk library, but I don't know how to add it into yaml file.

Here is a deb package for amd64, hope this will work for you codetimer_1.0.11_x64.zip

CodeShakingSheep commented 5 months ago

Thank you for the deb package. There is somehow a notification regarding Visual Studio when I attempt to run it. Probably, that's not intended? Can you fix that?

image

owlysk commented 5 months ago

Hi, I don't know, why Visual Studio Code notification appears. I don't use Visual Studio Code for making deb package. I tested deb package on Ubuntu & Kubuntu and run just fine. Which linux distribution are you using?

CodeShakingSheep commented 5 months ago

Well don't mind. I just ran it and it installed just fine (fyi I'm using Zorin OS 17 based on Ubuntu 22.04). Thank you!

CodeShakingSheep commented 1 month ago

Just one minor addition for the deb package: Would be great if the icon was displayed correctly in the dock. :pray: image