-
Notifications
You must be signed in to change notification settings - Fork 57
Simplicity
helloSystem wants to create a "simple, yet powerful" desktop experience.
- Design is how it works, not just how it looks
- Simplicity wins
- Less, but better
On this page we collect some examples of what we mean by that.
[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)
- Understand the concepts of interfaces, paths, objects, methods, and whatnot
- Write an XML file
- Execute
$ gdbus call --system \
--dest org.freedesktop.FileManager1 \
--object-path /org/freedesktop/FileManager1 \
--method org.freedesktop.FileManager1.ShowItems \
'["file:///usr"]' ""
Note that the exact same combination of org
, freedesktop
, and FileManager1
has to be used no less than three(!) times in different(!) notiations.
(As seen in D-Bus)
call 'org.freedesktop.FileManager1.ShowItems' '/usr'
(As maybe one time in the distant future seen in helloSystem)
[Desktop Entry]
Version=1.0
Exec=/System/Dock.AppDir/AppRun
Terminal=false
Type=Application
X-GNOME-Autostart-...=...
X-KDE-autostart-...=...
- 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
(As seen in xdg)
ln -s /System/Dock.AppDir /Applications/Autostart
(As seen in helloSystem)