Oh, yes, SFU on Windows. Had totally forgotten about SFU, because we had never used it at work.
Maybe I am a bit slow in this uptake, because personally I come across the situation where I need to transfer text files in Linux format (LF) to my Windows system and open them there in Notepad extremely rarely.
Actually, I solved the problem on the Windows side: All files which would normally be opened by Notepad will be opened by Notepad2
, which is what Notepad should have been all the time.
Anyway, for which ever reason you will create a large amount of pure text files on your Linux Mint system, which are meant to be transferred to your Windows system and which must arrive there in Windows text format (CR-LF). And you do not like the idea of fiddling around with the commandlines of dos2unix
. By the way, both commands seem to be absent from a default installation and need to be installed manually.
OK. you wish to have a GUI programme as a front end to dos2unix and to unix2dos. Right?
What I do not understand is: Why will a background task be needed which is launched on every reboot?
What is it meant to do?
Detect automatically whenever you create a new text file that this text file will be later on transferred to Windows and needs to converted from LF to CR-LF?
How should any background process be able to recognize what a pure text file be used for later on and on which platform?
So the idea of a background task does not seem to make much sense to me.
Would it not be totally sufficient to add two right click entries to the Nemo file manager context menu which offer "Dos2Unix" and "Unix2Dos"?
If you select "Unix2Dos" e.g. all marked files would be processed by the appropriate unix2dos commandline and converted from Linux text file format (LF) to Windows text file format (CR-LF).
If you select "Dos2Unix" e.g. all marked files would be processed by the appropriate dos2unix commandline and converted from Windows text file format (CR-LF) to Linux text file format (LF).
It will be necessary to compose the needed unix2dos
commandlines only once.
Cinnamon file-manager Nemo as well as xfce file-manager Thunar have got a way of creating user defined actions which will be added to the context menu. So no background tasks needed. No big project to create a new GUI. Everything which is needed is already there.
All you have to do is define what actually has got to happen, compose 2 commandlines (or 2 small scripts) and add them to the context menu of your file manager.