• 17 Posts
  • 23 Comments
Joined 2 years ago
cake
Cake day: December 30th, 2023

help-circle


  • Sorry, i have to ask again. I actually thought I had solved the problem. However, today I discovered that the jobs are overdue and have not been started for several days. When I display the timers with systemctl --user list-timers, I see that the NEXT column is empty::

    NEXT LEFT LAST                         PASSED UNIT                  ACTIVATES              
    -       - Sun 2026-02-01 20:01:48 CET       - backup.timer  backup.service
    

    Since there is no NEXT date, the timer/service will probably not be restarted. The timer unit looks like this:

    [Unit]
    Description="Backup to remote"
    
    [Timer]
    OnUnitActiveSec=3d
    Persistent=true
    
    [Install]
    WantedBy=default.target
    

    As you can see, I am well over the 3 days. When I call systemctl --user status backup.timer, I get:

     backup.timer - "Backup to remote"
         Loaded: loaded (/home/username/.config/systemd/user/backup.timer; enabled; preset: enabled)
        Drop-In: /home/username/.config/systemd/user/backup.timer.d
         Active: active (elapsed) since Fri 2026-02-13 16:53:31 CET; 7min ago
     Invocation: 95ae3860c50a454b98078fc2ce3eb3c5
        Trigger: n/a
       Triggers:  backup.service
    

    To me, this looks perfectly “normal.” The only thing that puzzles me is the Active line. Why is the current date (Fri 2026-02-13 16:53:31 CET) set there and not the date on which the job last ran (Sun 2026-02-01 20:01:48 CET)? The NEXT column fills up again when I start systemctl --user restart backup.service. The job is then executed immediately and the column is filled. However, after rebooting the laptop, the column is empty again and the job is no longer started at the given intervals.









  • Unfortunately, logrotate does not work the way I would like it to. I have now created a bash script, which hopefully does what it is supposed to do:

    #!/bin/bash
    keepCount=30
    
    files=($(ls *.db))
    fileCount=${#files[@]}
    
    for (( i=0; i<$fileCount; i++ )); do
    	database="${files[$i]}"
    	dbarr=($(ls -t $database.*))
    
    	for index in "${!dbarr[@]}"; do
    		p=$((index+1))
    		if [ $p -gt $keepCount ]; then
    			rm ${dbarr[$index]}
    		fi
    	done
    done
    

    Invoked in the respective directory, all *.db files are read into an array, as there can be different DBs per user. The array is then processed in a loop. First, the backup files for the respective DB are read into the array again, sorted by age. This array is then processed and all files whose index +1 is greater than keepCount are removed. This means that the oldest files are always removed and only those that are defined in the keepCount are kept.

    Its a little bit more complicated, but it seems to do the job.











  • This looks like something usefull. Some observations after first start…

    • why does the app requests full file rights, after I selected my local notes folder? If the app has access to that folder (and subfolders), this should be enough.
    • for code, examples a code font should be used and not the same font as article text
    • i use markdown a lot for code. With this it should be possible to select the whole code block by single click. When using css, this should be possible with > user-select:all
    • auto line break should be disabled in the same context. This seems to be already the case for code block but not for single line code
    • i would love to see support for yaml. But in the form that i can hide the yaml block
    • i think the search feature doesn’t work yet. If I have for example a note with the title Manjaro.md and I type “manjaro”, it isn’t found. The search should also search the text inside the notes or at least the yaml tags (if supported)
    • please keep the local folder and don’t invest your resources in a sync mechanism. There are so much possibilities like WebDAV, rsync, SFTP and a lot of clouds. To much to make anyone happy. There are some Android apps which sync such things with an ease.
    • I keep my rare images in a hidden subfolder of the notes folder like “.media”. Not only images, also linked PDF and so on. Such images are not displayed. They seems to be not found

    I really like the idea of your app. Could be a good companion for my PrimitiveNotes plug-in for Roundcube. Hopefully you find the time to develop it further.















  • Using gsettings list-keys org.gnome.Epiphany gives:

    active-clear-data-items
    ask-for-default
    content-filters
    default-search-engine
    enable-caret-browsing
    homepage-url
    new-windows-in-tabs
    restore-session-delaying-loads
    restore-session-policy
    search-engine-providers
    search-engines
    start-in-incognito-mode
    use-google-search-suggestions
    warn-on-close-unsubmitted-data
    

    Shouldnt there be a enable-webextensions