-
Notifications
You must be signed in to change notification settings - Fork 55
Simplicity
helloSystem wants to create a simple yet powerful desktop experience.
- Simplicity wins
- Less, but better
- Small tools that each do one job well
On this page we collect some examples of what we mean by that.
Use Case: I want to have baloo_file
run all the time as a user process, and have it restarted if it crashes.
[Unit]
After=network.target
Description=...
[Service]
Group=...
ExecStart=/usr/local/bin/baloo_file
Restart=always
TimeoutStartSec=0
Type=simple
User=...
WorkingDirectory=...
[Install]
WantedBy=multi-user.target
- Learn about all the fields and what they mean
- Write something like the above
- Find out how to name this file
- Find out where to put this file and save it there
- Activate this file using a command that needs to be found out
- Start this service using a command that needs to be found out
(As seen in systemd)
daemon -r baloo_file
(As seen in FreeBSD)
- Take the path
- Convert it to an URI
- Hash the URI with md5
- Find out in which multiple locations of indefinitely many possible locations thumbnails are stored
- Check each of those locations for potentially matching files
- Have an elaborated system in place that changes the thumbnail if the file contents change
- Have an elaborated system in place that cleans up thumbnails of deleted files
No one really knows whether file:///home/user/Music/Herbert Gr\xC3\xB6nemeyer - Bochum (Remastered 2016)/01 - Bochum (Remastered 2016).mp3
is correct, or c18a5600cbfbe514a6291ad8d28f106e
for that matter.
(As seen in XDG)
Read the thumbnail
xattr on /home/user/Music/Herbert Grönemeyer - Bochum (Remastered 2016)/01 - Bochum (Remastered 2016).mp3
(As soon seen in helloSystem)
Example: Send a message to a running process
$ gdbus call --system \
--dest org.freedesktop.FileManager1 \
--object-path /org/freedesktop/FileManager1 \
--method org.freedesktop.FileManager1.ShowItems \
'["file:///usr"]' ""
(As seen in D-Bus)
call 'org.freedesktop.FileManager1.ShowItems' '/usr'
(As maybe one time in the distant future seen in helloSystem)