I'm running KDE on openSUSE Tumbleweed, latest snapshot, in fact a fresh install yesterday. I installed Task Scheduler in KDE.
Here is my original cron job:
rhack@localhost:/Data2/Work> crontab -l
#No comment
DISPLAY=:0
#No comment
0 5 * * * /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=FreeFileSync --file-forwarding org.freefilesync.FreeFileSync "/Data2/Documents/Computer/Computer - System Information/System Backups/FreeFileSync Backup Batch File/BatchRun.ffs_batch" 2>>/Data2/Work/backuperror.log
# File generated by KCron the Monday, February 19, 2024 4:07:17 PM PST.
Note that when run from the KDE Task Scheduler or from the command line, the above command runs perfectly well. Sync is performed, a summary is displayed and an error log is written.
The error in the log is "Gtk-Message: 16:27:56.032: Failed to load module "canberra-gtk-module" but this has absolutely no effect on whether the job runs or not from the Task Scheduler "Run Now" or from the command line. Apparently this missing module is associated with the sound libraries and openSUSE has it named differently than expected.
When scheduled to run by the Task Scheduler, the task apparently starts - but does absolutely nothing. Examining the journal shows the job starts on schedule, never shows any CPU time consumed.
Feb 19 16:50:11 localhost.localdomain systemd[2461]: Started app-flatpak-org.freefilesync.FreeFileSync-4042.scope.
Feb 19 16:50:42 localhost.localdomain systemd[2461]: app-flatpak-org.freefilesync.FreeFileSync-4042.scope: Consumed 1min 7.012s CPU time.
Feb 19 16:51:00 localhost.localdomain CRON[4317]: (rhack) CMD (/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=FreeFileSync --file-forwarding org.freefilesync.FreeFileSync "/Data2/Documents/Computer/Computer - System Information/System Backups/FreeFileSync Backup Batch File/BatchRun.ffs_batch" 2>>/Data2/Work/backuperror.log)
rhack@localhost:/Data2/Work> ps -ef | grep freefilesync
rhack 6824 6823 0 17:02 ? 00:00:00 /bin/sh -c /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=FreeFileSync --file-forwarding org.freefilesync.FreeFileSync "/Data2/Documents/Computer/Computer - System Information/System Backups/FreeFileSync Backup Batch File/BatchRun.ffs_batch" 2>>/Data2/Work/backuperror.log
rhack 6825 6824 8 17:02 ? 00:00:00 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=FreeFileSync --file-forwarding org.freefilesync.FreeFileSync /Data2/Documents/Computer/Computer - System Information/System Backups/FreeFileSync Backup Batch File/BatchRun.ffs_batch
rhack 6854 2876 0 17:03 pts/1 00:00:00 grep --color=auto freefilesync
The batch file itself looks like this:
<?xml version="1.0" encoding="utf-8"?>
<FreeFileSync XmlType="BATCH" XmlFormat="23">
<Notes/>
<Compare>
<Variant>TimeAndSize</Variant>
<Symlinks>Exclude</Symlinks>
<IgnoreTimeShift/>
</Compare>
<Synchronize>
<Differences LeftOnly="right" LeftNewer="right" RightNewer="right" RightOnly="right"/>
<DeletionPolicy>RecycleBin</DeletionPolicy>
<VersioningFolder Style="Replace"/>
</Synchronize>
<Filter>
<Include>
<Item>*</Item>
</Include>
<Exclude>
<Item>*/.Trash-*/</Item>
<Item>*/.recycle/</Item>
<Item>*lost+found</Item>
</Exclude>
<SizeMin Unit="None">0</SizeMin>
<SizeMax Unit="None">0</SizeMax>
<TimeSpan Type="None">0</TimeSpan>
</Filter>
<FolderPairs>
<Pair>
<Left>/Data15</Left>
<Right>/run/media/rhack/Backup15/Data15</Right>
</Pair>
<Pair>
<Left>/Data7</Left>
<Right>/run/media/rhack/Backup7/Data7</Right>
</Pair>
<Pair>
<Left>/Data4</Left>
<Right>/run/media/rhack/Backup4/Data4</Right>
</Pair>
<Pair>
<Left>/Data3</Left>
<Right>/run/media/rhack/Backup3/Data3</Right>
</Pair>
<Pair>
<Left>/Data2</Left>
<Right>/run/media/rhack/Backup2/Data2</Right>
</Pair>
</FolderPairs>
<Errors Ignore="false" Retry="0" Delay="5"/>
<PostSyncCommand Condition="Completion"/>
<LogFolder>/Data2/Work/</LogFolder>
<EmailNotification Condition="Always"/>
<GridViewType>Action</GridViewType>
<Batch>
<ProgressDialog Minimized="true" AutoClose="false"/>
<ErrorDialog>Show</ErrorDialog>
<PostSyncAction>None</PostSyncAction>
</Batch>
</FreeFileSync>