Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File comparisons don't work over SMB protocol and across folders #22

Closed
snovotill opened this issue Apr 12, 2024 · 6 comments
Closed

File comparisons don't work over SMB protocol and across folders #22

snovotill opened this issue Apr 12, 2024 · 6 comments

Comments

@snovotill
Copy link

Please find attached my implementation of "Select Left" and "Compare" scripts which works across different folders and via Gnome's SMB pseudo paths. It would be great to have this working in your scripts. I had to rename the files to a .txt extension becuause GitHub is a Windows shop.
Compare.txt
SelectLeft.txt

@cfgnunes
Copy link
Owner

Hi @snovotill. Thanks for your request.

I have fixed this in the last version. Could you test it again?
(Commit: 67fef95)

@snovotill
Copy link
Author

Hmm, I still get pop-up "You must select files or directories!" when I try to compare two files or two folders which are on a remote SMB share, via Scripts ‣ Directories and files ‣Compare with diff. On the other hand, the two script which I attached upon opening this ticket do work. I'm on Debian Trixie with Gnome-Wayland, but currently not quite Gnome 46 just yet. I'll debug this when Gnome 46 arrives, since the current Nautilus Scripts "API" is weirdly buggy. Until then, be well and stay relentless!

@cfgnunes
Copy link
Owner

cfgnunes commented Apr 16, 2024

Hi @snovotill. Thanks for your feedback.

I have fixed this in the last version. Could you test it again (version 9.5.1)?

Now, I've tested on Debian Trixie with Gnome-Wayland using samba server (local and remote).

@snovotill
Copy link
Author

snovotill commented Apr 16, 2024

Okay maestro, It's working perfectly now! Thanks for sharing =)

On another topic, I've attached a script for deleting files out of a PDF in case you're interested.
Also a script which resizes images to some specific number of pixels, rather than to dimensions;
This is good when you have different aspect ratios (such as company logos) but you want them all to appear to be the same "size".

ResizeImageToMatrix384.sh.txt
DeletePdfPages.sh.txt
ExtractPdfPages.sh.txt

@cfgnunes
Copy link
Owner

Thanks for sharing the scripts.
About the scripts "DeletePdfPages.sh.txt" and "ExtractPdfPages.sh.txt" I use my scripts:

  • Document PDF -> PDF combine, split -> Split into single-page PDFs
    and after:
  • Document PDF -> PDF combine, split -> Combine multiple PDFs

@snovotill
Copy link
Author

snovotill commented Apr 17, 2024

You sure do! And those are two scripts which I did not have to write myself, along with MANY others☺ so thanks!
...aaaand if you implement the "select left" with "compare" (try the examples which I attached earlier) then you will have achieved GOD-level on the topic of Nautilus (and other) Scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants