mariusknaust / spotlight

Windows 10 Spotlight background images for Gnome
https://aur.archlinux.org/packages/spotlight/
55 stars 18 forks source link

Installation on Ubuntu #6

Closed jans23 closed 3 years ago

jans23 commented 5 years ago

Cool project. Could you give a few hints how to install it on Ubuntu Linux, please?

mariusknaust commented 5 years ago

Thanks! I’ve just added an installation section to the readme, I hope it will help you.

jans23 commented 5 years ago

Thanks. I followed the instructions and it looks good:

$ systemctl --user enable spotlight.timer
Created symlink /home/me/.config/systemd/user/default.target.wants/spotlight.timer → /home/me/.local/share/systemd/user/spotlight.timer.

But my desktop background didn't change. What to do?

mariusknaust commented 5 years ago

It will change daily now that you have enabled it, until you disable the timer again by running systemctl --user disable spotlight.timer.

To trigger it once you can either use the desktop entry by looking for spotlight in your gnome app menu, run spotlight.sh in a terminal, or trigger the service manually with systemctl --user start spotlight.service.

jans23 commented 5 years ago

I installed it the "local" way, as described in the installation documentation. Executing spotlight.sh manually does change the background successfully. But the following doesn't work:

$ systemctl --user start spotlight.service
Failed to start spotlight.service: Unit spotlight.service not found.
jans23 commented 5 years ago

It will change daily now that you have enabled it, until you disable the timer again by running systemctl --user disable spotlight.timer.

To trigger it once you can either use the desktop entry by looking for spotlight in your gnome app menu, run spotlight.sh in a terminal, or trigger the service manually with systemctl --user start spotlight.service.

Perhaps it would be good to add this information to the README.

mariusknaust commented 5 years ago

It will change daily now that you have enabled it, until you disable the timer again by running systemctl --user disable spotlight.timer. To trigger it once you can either use the desktop entry by looking for spotlight in your gnome app menu, run spotlight.sh in a terminal, or trigger the service manually with systemctl --user start spotlight.service.

Perhaps it would be good to add this information to the README.

I already did that yesterday :)

mariusknaust commented 5 years ago

I installed it the "local" way, as described in the installation documentation. Executing spotlight.sh manually does change the background successfully. But the following doesn't work:

$ systemctl --user start spotlight.service
Failed to start spotlight.service: Unit spotlight.service not found.

And I guess consequently the daily change doesn't work? Weird, because you could enable the timer. Can you verify that the service is in the same directory as the timer. I will try to reproduce it later.

jans23 commented 5 years ago

Can you verify that the service is in the same directory as the timer.

Confirmed.

mariusknaust commented 5 years ago

I just removed my package and did the local installation and it worked.

jans23 commented 5 years ago

After a day the wallpaper did changed successfully. Still the error above happens when executing manually.

I noticed that the wallpaper on the locked screen is different from the wallpaper on the (logged in) desktop (both are from Microsoft). Is this expected?

mariusknaust commented 5 years ago

Weird, because the timer is using the service as well.

Indeed, that is expected behavior.

jans23 commented 5 years ago

Since installation a few days ago, the wallpaper didn't change. What to do?

mariusknaust commented 5 years ago

Did you had a look at the log yet, e.g systemctl --user status spotlight.timer or systemctl --user status spotlight.service?

jans23 commented 5 years ago
$ systemctl --user status spotlight.timer
Unit spotlight.timer could not be found.
$ systemctl --user status spotlight.service
Unit spotlight.service could not be found.
mariusknaust commented 5 years ago

Maybe the paths are different on Ubuntu? But couldn't you enable the timer and haven't you reported that it once changed?

jans23 commented 5 years ago

Enabling the timer succeeded but starting the timer doesn't.

mariusknaust commented 5 years ago

7 might fix your problem, can you try the latest version?

jans23 commented 5 years ago

Unfortunately it doesn't fix this issue.

CodeFinder2 commented 3 years ago

I can confirm, spotlight.sh is working properly on Ubuntu 20.04 LTS (64 bit)! Nice work! :-)

mariusknaust commented 3 years ago

Thanks for the confirmation, @CodeFinder2!