You are Here:
Linux Lite 4.0 Final has been released. See the Release Announcements Section.




[ SOLVED ] File manager - can I set it to run a command on selected files

Author (Read 488 times)

0 Members and 1 Guest are viewing this topic.

 

Sprintrdriver

  • New to Forums
  • *
  • 45
    Posts
  • Country: no
  • Reputation: 3
  • Linux Lite on Dell Lattude D620

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Hi.

I often use LL when I manage my photo and video collection. I like to have control over the files last modified date, so if I have say converted an image into another format that new image file format would have set file modification date to the time when converted.

Therefore I manually use terminal and uses the touch command to (for the sake of example I put this name) make photograph.webp get the same modified date as photograph.jpg.
Code: [Select]
touch photograph.webp -dr photograph.jpgThis works for me, but I want to find out if there is possible to do this directly from file manager.

My idea is to set it up somehow so that in file manager I can select two files, and somehow have a menu that call on a command that involve the path of the two files.

Is this possible?
Last Edit: May 16, 2018, 11:50:49 PM by Jerry
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 


Re: File manager - can I set it to run a command on selected files
« Reply #1 on: May 16, 2018, 01:59:21 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6149
    Posts
  • Country: nz
  • Reputation: 550
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
See here - https://docs.xfce.org/xfce/thunar/custom-actions
Your Command would probably be something as simple as: touch %f
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: File manager - can I set it to run a command on selected files
« Reply #2 on: May 16, 2018, 11:51:24 AM »
 

Sprintrdriver

  • New to Forums
  • *
  • 45
    Posts
  • Country: no
  • Reputation: 3
  • Linux Lite on Dell Lattude D620

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Thank you very much, that seems to be the solution for me :)
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 

Re: File manager - can I set it to run a command on selected files
« Reply #3 on: May 16, 2018, 02:20:41 PM »
 

NN

  • a Xubuntu 16.04.4 LTS user
  • Muted
  • Forum Regular
  • *
  • 213
    Posts
  • Country: ru
  • Reputation: 8
  • just a visitor

  • Linux Lite: 1.0.0

  • CPU: Muted

  • MEMORY: 1Gb

  • VIDEO CARD: Muted
...
Last Edit: June 05, 2018, 05:57:57 AM by NN
... let the dead bury their dead (Matthew 8:22)
 

Re: File manager - can I set it to run a command on selected files
« Reply #4 on: May 16, 2018, 11:50:34 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6149
    Posts
  • Country: nz
  • Reputation: 550
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Jerry, is it possible to add to 'custom actions' formatting a USB device like in Nautilus (and in Windows) in Thunar? What is the command? Thank you beforehand.

Not that I am aware of. This thread is Solved.
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: File manager - can I set it to run a command on selected files
« Reply #5 on: May 17, 2018, 07:13:09 AM »
 

NN

  • a Xubuntu 16.04.4 LTS user
  • Muted
  • Forum Regular
  • *
  • 213
    Posts
  • Country: ru
  • Reputation: 8
  • just a visitor

  • Linux Lite: 1.0.0

  • CPU: Muted

  • MEMORY: 1Gb

  • VIDEO CARD: Muted
...
Last Edit: June 05, 2018, 05:58:11 AM by NN
... let the dead bury their dead (Matthew 8:22)
 


 


Linux Lite 4.0 Final has been released. See the Release Announcements Section.