* [gentoo-user] Dolphin and adding a option, if it exists. @ 2022-10-06 4:39 Dale 2022-10-06 7:33 ` Michael 2022-10-06 8:10 ` Arve Barsnes 0 siblings, 2 replies; 46+ messages in thread From: Dale @ 2022-10-06 4:39 UTC (permalink / raw To: gentoo-user Howdy, This may not exist. If not, oh well. Sometimes when I'm moving files with Dolphin, I need a added feature. I tend to use split panes when I copy or move files. Quite often, I want to move files from one location to another and the new file use the same name as the old file I'm replacing. What I *wish* I could do, move the file from one pane to the other and drag the new file on top of the old file and it replace it with the name of the old file. As it is now, I have to bring up properties, select the name of the file, while not including the extension, and copy it, then close that window and open properties on the new file, highlight the old name, paste new name, close window, copy new file over and either delete old file or tell it to overwrite the file. Sometimes it has a different extension and I have to delete instead. It would be a lot faster if I could just drag it on top of file I want to replace and either it be configured to use name of old file for new file or me select in a pop up what I want to do. Basically, move and drop instead of all the properties, copy, repeat with paste on new file and then move and maybe delete a file as well. I went to the services window and looked for anything I could add but I didn't see anything that would do what I describe but it could be a hidden feature of one that isn't obvious. Has anyone ever seen something that does this? While I use dolphin, I may could use another tool if it has this feature. Thanks. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 4:39 [gentoo-user] Dolphin and adding a option, if it exists Dale @ 2022-10-06 7:33 ` Michael 2022-10-06 7:52 ` Wol 2022-10-06 8:10 ` Arve Barsnes 1 sibling, 1 reply; 46+ messages in thread From: Michael @ 2022-10-06 7:33 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2388 bytes --] On Thursday, 6 October 2022 05:39:59 BST Dale wrote: > Howdy, > > This may not exist. If not, oh well. Sometimes when I'm moving files > with Dolphin, I need a added feature. I tend to use split panes when I > copy or move files. Quite often, I want to move files from one location > to another and the new file use the same name as the old file I'm > replacing. What I *wish* I could do, move the file from one pane to the > other and drag the new file on top of the old file and it replace it > with the name of the old file. As it is now, I have to bring up > properties, select the name of the file, while not including the > extension, and copy it, then close that window and open properties on > the new file, highlight the old name, paste new name, close window, copy > new file over and either delete old file or tell it to overwrite the > file. Sometimes it has a different extension and I have to delete > instead. > > It would be a lot faster if I could just drag it on top of file I want > to replace and either it be configured to use name of old file for new > file or me select in a pop up what I want to do. Basically, move and > drop instead of all the properties, copy, repeat with paste on new file > and then move and maybe delete a file as well. I went to the services > window and looked for anything I could add but I didn't see anything > that would do what I describe but it could be a hidden feature of one > that isn't obvious. > > Has anyone ever seen something that does this? While I use dolphin, I > may could use another tool if it has this feature. > > Thanks. > > Dale > > :-) :-) Perhaps I'm missing something ... If the old file has the *same* name as the new file, the file manager will warn you and ask you if you want to rename the new file so as it does not overwrite the old file, or if you want to replace the old file. If the old file has a different name, then the new file will be pasted in without asking. In this case isn't it quicker to delete the file you want replaced and then copy/move the new file over? Shift+Delete or right click - 'Delete' to delete it completely or just Delete/right click - 'Move to wastebin' in case you delete the wrong file by mistake and want to recover it later. BTW, pressing F2 after you select a file will allow you to rename it, without having to dive into properties. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 7:33 ` Michael @ 2022-10-06 7:52 ` Wol 2022-10-06 7:57 ` Michael 0 siblings, 1 reply; 46+ messages in thread From: Wol @ 2022-10-06 7:52 UTC (permalink / raw To: gentoo-user On 06/10/2022 08:33, Michael wrote: > On Thursday, 6 October 2022 05:39:59 BST Dale wrote: >> Howdy, >> >> This may not exist. If not, oh well. Sometimes when I'm moving files >> with Dolphin, I need a added feature. I tend to use split panes when I >> copy or move files. Quite often, I want to move files from one location >> to another and the new file use the same name as the old file I'm >> replacing. What I*wish* I could do, move the file from one pane to the >> other and drag the new file on top of the old file and it replace it >> with the name of the old file. As it is now, I have to bring up >> properties, select the name of the file, while not including the >> extension, and copy it, then close that window and open properties on >> the new file, highlight the old name, paste new name, close window, copy >> new file over and either delete old file or tell it to overwrite the >> file. Sometimes it has a different extension and I have to delete >> instead. >> >> It would be a lot faster if I could just drag it on top of file I want >> to replace and either it be configured to use name of old file for new >> file or me select in a pop up what I want to do. Basically, move and >> drop instead of all the properties, copy, repeat with paste on new file >> and then move and maybe delete a file as well. I went to the services >> window and looked for anything I could add but I didn't see anything >> that would do what I describe but it could be a hidden feature of one >> that isn't obvious. >> >> Has anyone ever seen something that does this? While I use dolphin, I >> may could use another tool if it has this feature. >> >> Thanks. >> >> Dale >> >> 😄 😄 > Perhaps I'm missing something ... > > If the old file has the*same* name as the new file, the file manager will > warn you and ask you if you want to rename the new file so as it does not > overwrite the old file, or if you want to replace the old file. This made me think. Some times the old tools are the best - maybe I ought to switch from Dolphin to Midnight Commander for my use case, and maybe you should too. Okay, it doesn't do exactly what you want, but the dance you want to do it will make it a lot easier ... Cheers, Wol ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 7:52 ` Wol @ 2022-10-06 7:57 ` Michael 0 siblings, 0 replies; 46+ messages in thread From: Michael @ 2022-10-06 7:57 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2949 bytes --] On Thursday, 6 October 2022 08:52:04 BST Wol wrote: > On 06/10/2022 08:33, Michael wrote: > > On Thursday, 6 October 2022 05:39:59 BST Dale wrote: > >> Howdy, > >> > >> This may not exist. If not, oh well. Sometimes when I'm moving files > >> with Dolphin, I need a added feature. I tend to use split panes when I > >> copy or move files. Quite often, I want to move files from one location > >> to another and the new file use the same name as the old file I'm > >> replacing. What I*wish* I could do, move the file from one pane to the > >> other and drag the new file on top of the old file and it replace it > >> with the name of the old file. As it is now, I have to bring up > >> properties, select the name of the file, while not including the > >> extension, and copy it, then close that window and open properties on > >> the new file, highlight the old name, paste new name, close window, copy > >> new file over and either delete old file or tell it to overwrite the > >> file. Sometimes it has a different extension and I have to delete > >> instead. > >> > >> It would be a lot faster if I could just drag it on top of file I want > >> to replace and either it be configured to use name of old file for new > >> file or me select in a pop up what I want to do. Basically, move and > >> drop instead of all the properties, copy, repeat with paste on new file > >> and then move and maybe delete a file as well. I went to the services > >> window and looked for anything I could add but I didn't see anything > >> that would do what I describe but it could be a hidden feature of one > >> that isn't obvious. > >> > >> Has anyone ever seen something that does this? While I use dolphin, I > >> may could use another tool if it has this feature. > >> > >> Thanks. > >> > >> Dale > >> > >> 😄 😄 > > > > Perhaps I'm missing something ... > > > > If the old file has the*same* name as the new file, the file manager will > > warn you and ask you if you want to rename the new file so as it does not > > overwrite the old file, or if you want to replace the old file. > > This made me think. Some times the old tools are the best - maybe I > ought to switch from Dolphin to Midnight Commander for my use case, and > maybe you should too. > > Okay, it doesn't do exactly what you want, but the dance you want to do > it will make it a lot easier ... > > Cheers, > Wol I just had a look in Dolphin configuration. Under General/Confirmations tab you can select to disable asking for confirmation when you move files to wastebin, or when you delete files of folders. Not sure if this is desirable, as you could inadvertently delete a file without thinking first, but if you are going to be deleting manually a lot of files, confirming this is something you really want to do could become so repetitive you may want to disable it at least for a while. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 4:39 [gentoo-user] Dolphin and adding a option, if it exists Dale 2022-10-06 7:33 ` Michael @ 2022-10-06 8:10 ` Arve Barsnes 2022-10-06 12:45 ` Neil Bothwick 2022-10-08 20:32 ` Frank Steinmetzger 1 sibling, 2 replies; 46+ messages in thread From: Arve Barsnes @ 2022-10-06 8:10 UTC (permalink / raw To: gentoo-user On Thu, 6 Oct 2022 at 06:40, Dale <rdalek1967@gmail.com> wrote: > > Howdy, > > This may not exist. If not, oh well. Sometimes when I'm moving files > with Dolphin, I need a added feature. I tend to use split panes when I > copy or move files. Quite often, I want to move files from one location > to another and the new file use the same name as the old file I'm > replacing. What I *wish* I could do, move the file from one pane to the > other and drag the new file on top of the old file and it replace it > with the name of the old file. As it is now, I have to bring up > properties, select the name of the file, while not including the > extension, and copy it, then close that window and open properties on > the new file, highlight the old name, paste new name, close window, copy > new file over and either delete old file or tell it to overwrite the > file. Sometimes it has a different extension and I have to delete > instead. > > It would be a lot faster if I could just drag it on top of file I want > to replace and either it be configured to use name of old file for new > file or me select in a pop up what I want to do. Basically, move and > drop instead of all the properties, copy, repeat with paste on new file > and then move and maybe delete a file as well. I went to the services > window and looked for anything I could add but I didn't see anything > that would do what I describe but it could be a hidden feature of one > that isn't obvious. > > Has anyone ever seen something that does this? While I use dolphin, I > may could use another tool if it has this feature. This is probably a case of Dolphin not being a good tool, unless it has a built-in command-line? $ mv newfile oldfile will overwrite the old file in place with the new file with the name of the old file. In my file manager, emelfm2 (sadly not in tree any more), which has a built-in command-line there are at least two ways I could solve this. 1. Equivalent to your method - Select old file, F2 (rename), ctrl+c, esc, select new file in other pane, shift+F6 (move with rename), ctrl+v, enter 2. Equivalent to explicit command-line on the built-in terminal - mv %f %F (referencing selected file(s) in the active and inactive pane respectively) I know there are many file managers with a built-in terminal, so maybe others have similar possible solutions. I saw someone mention midnight commander which I believe is one. Regards, Arve ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 8:10 ` Arve Barsnes @ 2022-10-06 12:45 ` Neil Bothwick 2022-10-06 15:19 ` Ramon Fischer 2022-10-06 17:41 ` Dale 2022-10-08 20:32 ` Frank Steinmetzger 1 sibling, 2 replies; 46+ messages in thread From: Neil Bothwick @ 2022-10-06 12:45 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 847 bytes --] On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote: > This is probably a case of Dolphin not being a good tool, unless it > has a built-in command-line? > $ mv newfile oldfile > will overwrite the old file in place with the new file with the name > of the old file. And tab-completion makes this a lot quicker than renaming files in a file manager. > I know there are many file managers with a built-in terminal, so maybe > others have similar possible solutions. I saw someone mention midnight > commander which I believe is one. Or you could use a drop-down terminal like Yakuake to give a terminal on demand, whatever program you are using. Yakuake is for KDE, it wraps Konsole, but there are GNOME-ish variants too, I wouldn't be without it. -- Neil Bothwick All things in moderation, ESPECIALLY moderation. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 12:45 ` Neil Bothwick @ 2022-10-06 15:19 ` Ramon Fischer 2022-10-06 15:22 ` Ramon Fischer 2022-10-06 15:24 ` Neil Bothwick 2022-10-06 17:41 ` Dale 1 sibling, 2 replies; 46+ messages in thread From: Ramon Fischer @ 2022-10-06 15:19 UTC (permalink / raw To: gentoo-user [-- Attachment #1.1.1: Type: text/plain, Size: 721 bytes --] And if you like Bash brace expansions; this one is sometimes quicker, than tab-completion and removing characters: $ mv file.txt{,.bak} file.txt.bak $ mv file.txt,{bak,img} file.txt.img $ mv file.txt{img,} file.txt -Ramon On 06/10/2022 14:45, Neil Bothwick wrote: >> This is probably a case of Dolphin not being a good tool, unless it >> has a built-in command-line? >> $ mv newfile oldfile >> will overwrite the old file in place with the new file with the name >> of the old file. > And tab-completion makes this a lot quicker than renaming files in a file > manager. > -- GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 6557 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 15:19 ` Ramon Fischer @ 2022-10-06 15:22 ` Ramon Fischer 2022-10-06 15:24 ` Neil Bothwick 1 sibling, 0 replies; 46+ messages in thread From: Ramon Fischer @ 2022-10-06 15:22 UTC (permalink / raw To: gentoo-user [-- Attachment #1.1.1: Type: text/plain, Size: 647 bytes --] I corrected some typos. This one is syntactically correct: $ mv file.txt{,.bak} file.txt.bak $ mv file.txt.{bak,img} file.txt.img $ mv file.txt{.img,} file.txt -Ramon On 06/10/2022 17:19, Ramon Fischer wrote: > And if you like Bash brace expansions; this one is sometimes quicker, > than tab-completion and removing characters: > > $ mv file.txt{,.bak} > file.txt.bak > $ mv file.txt,{bak,img} > file.txt.img > $ mv file.txt{img,} > file.txt > > -Ramon -- GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 6557 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 15:19 ` Ramon Fischer 2022-10-06 15:22 ` Ramon Fischer @ 2022-10-06 15:24 ` Neil Bothwick 1 sibling, 0 replies; 46+ messages in thread From: Neil Bothwick @ 2022-10-06 15:24 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 935 bytes --] On Thu, 6 Oct 2022 17:19:09 +0200, Ramon Fischer wrote: > And if you like Bash brace expansions; this one is sometimes quicker, > than tab-completion and removing characters: > > $ mv file.txt{,.bak} > file.txt.bak > $ mv file.txt,{bak,img} > file.txt.img > $ mv file.txt{img,} > file.txt $ mv -b oldname newname If newname exists, it is renamed with a ~ extension. > > -Ramon > > On 06/10/2022 14:45, Neil Bothwick wrote: > >> This is probably a case of Dolphin not being a good tool, unless it > >> has a built-in command-line? > >> $ mv newfile oldfile > >> will overwrite the old file in place with the new file with the name > >> of the old file. > > And tab-completion makes this a lot quicker than renaming files in a > > file manager. > > > -- Neil Bothwick I'll never forget the 1st time I ran Windows, but I'm trying... [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 12:45 ` Neil Bothwick 2022-10-06 15:19 ` Ramon Fischer @ 2022-10-06 17:41 ` Dale 2022-10-08 3:44 ` Dale 2022-10-23 6:35 ` Dale 1 sibling, 2 replies; 46+ messages in thread From: Dale @ 2022-10-06 17:41 UTC (permalink / raw To: gentoo-user Neil Bothwick wrote: > On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote: > >> This is probably a case of Dolphin not being a good tool, unless it >> has a built-in command-line? >> $ mv newfile oldfile >> will overwrite the old file in place with the new file with the name >> of the old file. > And tab-completion makes this a lot quicker than renaming files in a file > manager. > This is a option I haven't thought of. The mv command is a good thought. Next time I have a lot of these to do, I'll try it. It just may work. Plus, tab completion would be a nice bonus. >> I know there are many file managers with a built-in terminal, so maybe >> others have similar possible solutions. I saw someone mention midnight >> commander which I believe is one. > Or you could use a drop-down terminal like Yakuake to give a terminal on > demand, whatever program you are using. Yakuake is for KDE, it wraps > Konsole, but there are GNOME-ish variants too, I wouldn't be without it. > > I look into Yakuake. I've never heard of it before. It's emerging and I have to run to town to help a friend. Thanks. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 17:41 ` Dale @ 2022-10-08 3:44 ` Dale 2022-10-08 8:05 ` Michael ` (2 more replies) 2022-10-23 6:35 ` Dale 1 sibling, 3 replies; 46+ messages in thread From: Dale @ 2022-10-08 3:44 UTC (permalink / raw To: gentoo-user Dale wrote: > Neil Bothwick wrote: >> On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote: >> >>> This is probably a case of Dolphin not being a good tool, unless it >>> has a built-in command-line? >>> $ mv newfile oldfile >>> will overwrite the old file in place with the new file with the name >>> of the old file. >> And tab-completion makes this a lot quicker than renaming files in a file >> manager. >> > This is a option I haven't thought of. The mv command is a good > thought. Next time I have a lot of these to do, I'll try it. It just > may work. Plus, tab completion would be a nice bonus. > I just got a couple dozen videos that I want to do what I described with. I used the -v option with mv plus double check in dolphin afterwards and so far, it works nicely. Tab completion makes it really easy. It's faster than all the properties window, copy, paste and all that. I might add, along with tab completion, I also use the highlight and middle click on the mouse. A faster way to copy and paste when needed. That's a nifty feature of Konsole. >>> I know there are many file managers with a built-in terminal, so maybe >>> others have similar possible solutions. I saw someone mention midnight >>> commander which I believe is one. >> Or you could use a drop-down terminal like Yakuake to give a terminal on >> demand, whatever program you are using. Yakuake is for KDE, it wraps >> Konsole, but there are GNOME-ish variants too, I wouldn't be without it. >> >> > I look into Yakuake. I've never heard of it before. It's emerging and > I have to run to town to help a friend. > > Thanks. > > Dale > > :-) :-) > I installed Yakuake and to me, it looks like Konsole but without the menu part at the top. Other than that, I don't see anything special. I kinda wish I had a terminal with dolphin or something. I think there is a way but right now, I'm getting the job done. I'll look into that later. Pretty sure it is under the tool menu. Thanks. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 3:44 ` Dale @ 2022-10-08 8:05 ` Michael 2022-10-08 8:18 ` Dale 2022-10-08 9:10 ` Wols Lists 2022-10-08 20:58 ` [gentoo-user] " Neil Bothwick 2 siblings, 1 reply; 46+ messages in thread From: Michael @ 2022-10-08 8:05 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1054 bytes --] On Saturday, 8 October 2022 04:44:56 BST Dale wrote: > I installed Yakuake and to me, it looks like Konsole but without the > menu part at the top. Other than that, I don't see anything special. Once Yakuake is running, F12 will open it in whichever virtual desktop you happen to be and you can continue your work in the terminal within that desktop. I'm not sure what other benefits it has. > I > kinda wish I had a terminal with dolphin or something. I think there is > a way but right now, I'm getting the job done. I'll look into that > later. Pretty sure it is under the tool menu. > > Thanks. > > Dale > > :-) :-) Yes, look at Tools>'Focus Terminal Panel', or Ctrl+Shift+F4. I find this more useful than Yakuake for my typical use case,[1] or more often I just use Shift+F4 to open a new separate Konsole terminal in the same directory as Dolphin happens to be. [1] Often I go into a directory which I have already opened in Dolphin and then run a series of commands in a terminal, without needing to refer back to dolphin. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 8:05 ` Michael @ 2022-10-08 8:18 ` Dale 2022-10-08 21:02 ` Neil Bothwick 0 siblings, 1 reply; 46+ messages in thread From: Dale @ 2022-10-08 8:18 UTC (permalink / raw To: gentoo-user Michael wrote: > On Saturday, 8 October 2022 04:44:56 BST Dale wrote: > >> I installed Yakuake and to me, it looks like Konsole but without the >> menu part at the top. Other than that, I don't see anything special. > Once Yakuake is running, F12 will open it in whichever virtual desktop you > happen to be and you can continue your work in the terminal within that > desktop. I'm not sure what other benefits it has. > I think since I always have Konsole open and ready, it is easier for me to use it. If I rarely had Konsole open, then that might come in handy. I have Konsole with several tabs open and parked on desktop 3. It's stuck there at all times. I have 18 virtual desktops and some have specific programs on certain desktops. Seamonkey web browser is always on desktop 1. Seamonkey email is on desktop 2. The list goes on. I'm pretty organized in that way. ;-) >> I >> kinda wish I had a terminal with dolphin or something. I think there is >> a way but right now, I'm getting the job done. I'll look into that >> later. Pretty sure it is under the tool menu. >> >> Thanks. >> >> Dale >> >> :-) :-) > Yes, look at Tools>'Focus Terminal Panel', or Ctrl+Shift+F4. I find this more > useful than Yakuake for my typical use case,[1] or more often I just use > Shift+F4 to open a new separate Konsole terminal in the same directory as > Dolphin happens to be. > > [1] Often I go into a directory which I have already opened in Dolphin and > then run a series of commands in a terminal, without needing to refer back to > dolphin. I have Konsole set to run su - when it opens so that messes up that. It opens and cd's to the directory but wants to run as root. I guess I could find a way to get a root Konsole another way but most of the time, I need it as root anyway. On the rare occasion I need it as my user, I just su dale and carry on. I will say this, using mv was much easier and faster than my old way a bit ago. Thanks Arve for that suggestion. It's command line but it works well and does exactly what I want. I was hoping for a GUI method but this works. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 8:18 ` Dale @ 2022-10-08 21:02 ` Neil Bothwick 2022-10-08 22:15 ` Dale 0 siblings, 1 reply; 46+ messages in thread From: Neil Bothwick @ 2022-10-08 21:02 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 705 bytes --] On Sat, 8 Oct 2022 03:18:30 -0500, Dale wrote: > > Once Yakuake is running, F12 will open it in whichever virtual > > desktop you happen to be and you can continue your work in the > > terminal within that desktop. I'm not sure what other benefits it > > has. > > I think since I always have Konsole open and ready, it is easier for me > to use it. The key point there is that it opens on the desktop you are using, so if you need to refer to the program you are currently using, you have both terminal and program together - that's where I find it useful. -- Neil Bothwick There are 10 types of people in this world, those who understand binary notation and those who don't. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 21:02 ` Neil Bothwick @ 2022-10-08 22:15 ` Dale 2022-10-08 22:20 ` Mark Knecht 2022-10-09 7:44 ` Neil Bothwick 0 siblings, 2 replies; 46+ messages in thread From: Dale @ 2022-10-08 22:15 UTC (permalink / raw To: gentoo-user Neil Bothwick wrote: > On Sat, 8 Oct 2022 03:18:30 -0500, Dale wrote: > >>> Once Yakuake is running, F12 will open it in whichever virtual >>> desktop you happen to be and you can continue your work in the >>> terminal within that desktop. I'm not sure what other benefits it >>> has. >> I think since I always have Konsole open and ready, it is easier for me >> to use it. > The key point there is that it opens on the desktop you are using, so if > you need to refer to the program you are currently using, you have both > terminal and program together - that's where I find it useful. > > I can see where that can be handy. For me, once I start my video moves, I just have to type on the first one then after that, I just highlight and paste the parts that are the same and use tab completion for the rest. It goes pretty fast from there. The other thing, because of how I have Konsole set up, it wants to run as root instead of user. I don't want to change that so I sort of changed things that make it incompatible for me so it is faster to just go to Konsole. Good idea for most tho. I'm just a odd ball. lol Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 22:15 ` Dale @ 2022-10-08 22:20 ` Mark Knecht 2022-10-08 23:20 ` Dale 2022-10-09 7:44 ` Neil Bothwick 1 sibling, 1 reply; 46+ messages in thread From: Mark Knecht @ 2022-10-08 22:20 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 265 bytes --] On Sat, Oct 8, 2022 at 3:15 PM Dale <rdalek1967@gmail.com> wrote: <SNIP> > Good idea for most tho. I'm just a odd ball. lol <SNIP> Never truer words spoken... ;-) Was following your thread because I'm working on a similar project here using Plex. Cheers, Mark [-- Attachment #2: Type: text/html, Size: 459 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 22:20 ` Mark Knecht @ 2022-10-08 23:20 ` Dale 0 siblings, 0 replies; 46+ messages in thread From: Dale @ 2022-10-08 23:20 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 480 bytes --] Mark Knecht wrote: > > > On Sat, Oct 8, 2022 at 3:15 PM Dale <rdalek1967@gmail.com > <mailto:rdalek1967@gmail.com>> wrote: > <SNIP> > > Good idea for most tho. I'm just a odd ball. lol > <SNIP> > > Never truer words spoken... ;-) > > Was following your thread because I'm working on a similar project > here using Plex. > > Cheers, > Mark Good. Maybe something in this thread will help someone else. Maybe someone not as much a odd ball as me. ROFL Dale :-) :-) [-- Attachment #2: Type: text/html, Size: 1347 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 22:15 ` Dale 2022-10-08 22:20 ` Mark Knecht @ 2022-10-09 7:44 ` Neil Bothwick 1 sibling, 0 replies; 46+ messages in thread From: Neil Bothwick @ 2022-10-09 7:44 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 223 bytes --] On Sat, 8 Oct 2022 17:15:28 -0500, Dale wrote: > Good idea for most tho. I'm just a odd ball. lol You'll get no argument from me ;-) -- Neil Bothwick Okay, who put a "stop payment" on my reality check? [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 3:44 ` Dale 2022-10-08 8:05 ` Michael @ 2022-10-08 9:10 ` Wols Lists 2022-10-08 9:24 ` Dale 2022-10-10 0:53 ` [gentoo-user] " Grant Edwards 2022-10-08 20:58 ` [gentoo-user] " Neil Bothwick 2 siblings, 2 replies; 46+ messages in thread From: Wols Lists @ 2022-10-08 9:10 UTC (permalink / raw To: gentoo-user On 08/10/2022 04:44, Dale wrote: > I might add, along with tab completion, I also use the highlight > and middle click on the mouse. A faster way to copy and paste when > needed. That's a nifty feature of Konsole. I think that's been part of X since the dinosaurs were around. Try it elsewhere, it works most places, afaik ... Cheers, Wol ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 9:10 ` Wols Lists @ 2022-10-08 9:24 ` Dale 2022-10-10 0:53 ` [gentoo-user] " Grant Edwards 1 sibling, 0 replies; 46+ messages in thread From: Dale @ 2022-10-08 9:24 UTC (permalink / raw To: gentoo-user Wols Lists wrote: > On 08/10/2022 04:44, Dale wrote: >> I might add, along with tab completion, I also use the highlight >> and middle click on the mouse. A faster way to copy and paste when >> needed. That's a nifty feature of Konsole. > > I think that's been part of X since the dinosaurs were around. Try it > elsewhere, it works most places, afaik ... > > Cheers, > Wol > > I think it is gpm or something that makes it work on a regular console too. It's been a long time since I installed it but I think that is the name. It is nifty tho. I didn't know about it for a good while. I sort of found it by accident if I recall correctly. I'll keep a eye out for other places tho. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* [gentoo-user] Re: Dolphin and adding a option, if it exists. 2022-10-08 9:10 ` Wols Lists 2022-10-08 9:24 ` Dale @ 2022-10-10 0:53 ` Grant Edwards 1 sibling, 0 replies; 46+ messages in thread From: Grant Edwards @ 2022-10-10 0:53 UTC (permalink / raw To: gentoo-user On 2022-10-08, Wols Lists <antlists@youngman.org.uk> wrote: > On 08/10/2022 04:44, Dale wrote: >> I might add, along with tab completion, I also use the highlight >> and middle click on the mouse. A faster way to copy and paste when >> needed. That's a nifty feature of Konsole. > > I think that's been part of X since the dinosaurs were around. Indeed. X has worked that for the 35 years I've been using it. > Try it elsewhere, it works most places, afaik ... If there's anywhere that doesn't work, then something is broken. -- Grant ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 3:44 ` Dale 2022-10-08 8:05 ` Michael 2022-10-08 9:10 ` Wols Lists @ 2022-10-08 20:58 ` Neil Bothwick 2 siblings, 0 replies; 46+ messages in thread From: Neil Bothwick @ 2022-10-08 20:58 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 653 bytes --] On Fri, 7 Oct 2022 22:44:56 -0500, Dale wrote: > I installed Yakuake and to me, it looks like Konsole but without the > menu part at the top. Other than that, I don't see anything special. I > kinda wish I had a terminal with dolphin or something. I think there is > a way but right now, I'm getting the job done. I'll look into that > later. Pretty sure it is under the tool menu. It is Konsole, but on demand. I have Konsole open on a separate desktop permanently, but sometime I just want to run a quick shell command and can press F12 to do it there and then. -- Neil Bothwick I@love~my,;It's%made in Taiwa~##$ ` #@ [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 17:41 ` Dale 2022-10-08 3:44 ` Dale @ 2022-10-23 6:35 ` Dale 2022-10-23 9:41 ` Frank Steinmetzger 1 sibling, 1 reply; 46+ messages in thread From: Dale @ 2022-10-23 6:35 UTC (permalink / raw To: gentoo-user Dale wrote: > > This is a option I haven't thought of. The mv command is a good > thought. Next time I have a lot of these to do, I'll try it. It just > may work. Plus, tab completion would be a nice bonus. > > Thanks. > > Dale > > :-) :-) > Well, I ran into a slight problem. This isn't much of a problem with Linux but I'm not sure how this would work on windoze tho. The problem, if it is one, is the file extension. Let's say I have a mp4 file that is the older original file that I intend to replace. If the file I intend to put in its place is a .mkv file, mv uses the .mp4 extension because all it cares about is the name of the file, not what it is or its content. So, I end up with a .mkv file that has a .mp4 extension. It works here on Linux but not sure about windoze and such. I looked at the man page and I don't see a way to tell it to retain the extension. I see something about suffix but I don't think that is related to this. If I just backspace and change the extension, it basically moves the file and I end up with both the old and new file. I wish I could write code and create a tool for this. :/ Is there a way to work around this problem? It works great except for losing the file extension. Thanks. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-23 6:35 ` Dale @ 2022-10-23 9:41 ` Frank Steinmetzger 2022-10-23 11:16 ` Dale 2022-11-22 9:59 ` [gentoo-user] " Dale 0 siblings, 2 replies; 46+ messages in thread From: Frank Steinmetzger @ 2022-10-23 9:41 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2113 bytes --] Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale: > Well, I ran into a slight problem. This isn't much of a problem with > Linux but I'm not sure how this would work on windoze tho. The problem, > if it is one, is the file extension. Let's say I have a mp4 file that > is the older original file that I intend to replace. If the file I > intend to put in its place is a .mkv file, mv uses the .mp4 extension > because all it cares about is the name of the file, not what it is or > its content. So, I end up with a .mkv file that has a .mp4 extension. > It works here on Linux but not sure about windoze and such. It’s not a problem for as long as the application you open the file with does its own detection. I.e. you feed mp4 to mpv, but it recognises by itself that it’s mp4 and can handle it. > I looked at the man page and I don't see a way to tell it to retain the > extension. I see something about suffix but I don't think that is > related to this. If I just backspace and change the extension, it > basically moves the file and I end up with both the old and new file. I > wish I could write code and create a tool for this. :/ > > Is there a way to work around this problem? It works great except for > losing the file extension. If you still want to stick to a terminal solution akin to mv, then there is no way around a little script which wraps mv by extracting the extension and filename base. You could also add some “intelligence” with regards to directories, in order to reduce the amount of effort required to use the command—in case your directories follow some schema or are constant. #!/usr/bin/sh [ "$#" -ne "2" ] && exit 1 SRC="$1" DST="$2" SRC_EXT="${SRC##*.}" DST_BASE="${DST%.*}" # remove destination for the case that the extensions differ rm "$DST" mv "$SRC" "${DST_BASE}${SRC_EXT}" -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. “If you enjoy wasting time, is that time really wasted?” – Philosoraptor [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-23 9:41 ` Frank Steinmetzger @ 2022-10-23 11:16 ` Dale 2022-10-23 11:57 ` Frank Steinmetzger 2022-10-24 13:49 ` [gentoo-user] " Grant Edwards 2022-11-22 9:59 ` [gentoo-user] " Dale 1 sibling, 2 replies; 46+ messages in thread From: Dale @ 2022-10-23 11:16 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale: > >> Well, I ran into a slight problem. This isn't much of a problem with >> Linux but I'm not sure how this would work on windoze tho. The problem, >> if it is one, is the file extension. Let's say I have a mp4 file that >> is the older original file that I intend to replace. If the file I >> intend to put in its place is a .mkv file, mv uses the .mp4 extension >> because all it cares about is the name of the file, not what it is or >> its content. So, I end up with a .mkv file that has a .mp4 extension. >> It works here on Linux but not sure about windoze and such. > It’s not a problem for as long as the application you open the file with > does its own detection. I.e. you feed mp4 to mpv, but it recognises by > itself that it’s mp4 and can handle it. That is true on Linux. Most linux software could care less what the extension is or if it even has one. Heck, you could likely change a .mp4 to .txt and it would open with a video player just by clicking on it. Thing is, if I share a file with someone who uses windoze, I'm not sure if it would work the same way. A wrong extension could cause problems, either not opening at all or crashing something. It's windoze, one can't expect much. ROFL I thought about looking to see if there is a way to "scan" a directory and look at each file and if needed, change the extension to the correct one. Thing is, I couldn't write a fancy script if my life depended on it. I also looked into using Krename to do it but it refuses to change a extension. Doing it one file at a time manually puts me back to where it is easier to change the file the old way. Time consuming but works. >> I looked at the man page and I don't see a way to tell it to retain the >> extension. I see something about suffix but I don't think that is >> related to this. If I just backspace and change the extension, it >> basically moves the file and I end up with both the old and new file. I >> wish I could write code and create a tool for this. :/ >> >> Is there a way to work around this problem? It works great except for >> losing the file extension. > If you still want to stick to a terminal solution akin to mv, then there is > no way around a little script which wraps mv by extracting the extension and > filename base. You could also add some “intelligence” with regards to > directories, in order to reduce the amount of effort required to use the > command—in case your directories follow some schema or are constant. > > > #!/usr/bin/sh > > [ "$#" -ne "2" ] && exit 1 > SRC="$1" > DST="$2" > > SRC_EXT="${SRC##*.}" > DST_BASE="${DST%.*}" > > # remove destination for the case that the extensions differ > rm "$DST" > > mv "$SRC" "${DST_BASE}${SRC_EXT}" > Hmmmm. I get a little of that but then I get lost. Just how does that work and how would I use it? I think I would save that as a file, make it executable and then run it with whatever name I give it. I'm not sure exactly how to tell it what files to move tho. Same as mv maybe? Currently, I move to the main directory that files are in when I am in Konsole and running as my user, so file permissions don't switch to root. My process on file organizing goes a little like this. I have a set of videos that go together. When I have a new version of one or more videos, I place them in a sub-directory until they are named properly or something so I can move to the main directory. Like this: Main Directory #Permanent location for files ----- Sub-directory #Temporary location for files needing names changed etc. Once done, they move up to main directory. A typical command for mv would be like this. mv sub-directory/<file name of new file> <file name of old file in main directory> Just trying to follow this and figure out how to use it. ;-) I've said this before, my scripting skills are so small it isn't funny. :/ Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-23 11:16 ` Dale @ 2022-10-23 11:57 ` Frank Steinmetzger 2022-10-24 13:49 ` [gentoo-user] " Grant Edwards 1 sibling, 0 replies; 46+ messages in thread From: Frank Steinmetzger @ 2022-10-23 11:57 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 7219 bytes --] Am Sun, Oct 23, 2022 at 06:16:04AM -0500 schrieb Dale: > Frank Steinmetzger wrote: > > Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale: > > > >> Well, I ran into a slight problem. This isn't much of a problem with > >> Linux but I'm not sure how this would work on windoze tho. The problem, > >> if it is one, is the file extension. Let's say I have a mp4 file that > >> is the older original file that I intend to replace. If the file I > >> intend to put in its place is a .mkv file, mv uses the .mp4 extension > >> because all it cares about is the name of the file, not what it is or > >> its content. So, I end up with a .mkv file that has a .mp4 extension. > >> It works here on Linux but not sure about windoze and such. > > It’s not a problem for as long as the application you open the file with > > does its own detection. I.e. you feed mp4 to mpv, but it recognises by > > itself that it’s mp4 and can handle it. > > That is true on Linux. Most linux software could care less what the > extension is or if it even has one. Mpv or Vlc on Windows will probably just work™, too. > Heck, you could likely change a > .mp4 to .txt and it would open with a video player just by clicking on > it. Thing is, if I share a file with someone who uses windoze, I'm not > sure if it would work the same way. A wrong extension could cause > problems, either not opening at all or crashing something. It's > windoze, one can't expect much. ROFL Now you’re talking about double-clicking in a file manager and open the registered application. That’s the same—to some extent—on Linux file managers. I was referring to an application that could work out the details. > I thought about looking to see if there is a way to "scan" a directory > and look at each file and if needed, change the extension to the correct > one. Thing is, I couldn't write a fancy script if my life depended on > it. I also looked into using Krename to do it but it refuses to change > a extension. Doing it one file at a time manually puts me back to where > it is easier to change the file the old way. Time consuming but works. Well, ther is the `file` tool, plus maybe `mediainfo` or `identify` for images. But their output may not always be sufficient. > > If you still want to stick to a terminal solution akin to mv, then there > > is no way around a little script which wraps mv by extracting the > > extension and filename base. > Hmmmm. I get a little of that but then I get lost. The script first checks wheter it receives exactly two arguments, and exits otherwise. In theory it should also check whether both paths exist and are files. First rule of programming: always sanitise your inputs! Now it gets the extension of the source file and the base part (i.e. everything without the extension) from the destination. Then it deletes the original destination file and finally moves the source by concatenating the original destination’s base part with the source’s extension part. > Just how does that work and how would I use it? I have a lot of little helper scripts. I collect them in ~/usr/bin, to which my PATH is expanded in ~/.bashrc with export PATH=~/usr/bin:$PATH. Actually, I keep the script files in git repositories under ~/dev, and then put symlinks into ~/usr/bin, which point to the repository file. > I think I would save that as a file, make it executable and then run it > with whatever name I give it. Exactly. > I'm not sure exactly how to tell it what files to move tho. Same as mv > maybe? Yes. You give it two arguments. That’s what $1 and $2 are for in the script. I always write my scripts so that they can handle spaces in filenames. I find it an anachronism to still use underscores or dots in filenames where spaces would go in normal language. File systems have been able to deal with spaces for decades now. > Currently, I move to the main directory that files are in when I am in > Konsole and running as my user, so file permissions don't switch to root. That’s the proper way to do it. I also have a root console open all the time, but don’t do normal file operations in there. The risk is too big that I may be typing too fast for my own good. > My process on file organizing goes a little like this. I have a set of > videos that go together. When I have a new version of one or more videos, > I place them in a sub-directory until they are named properly or something > so I can move to the main directory. Like this: > > Main Directory #Permanent location for files ----- Sub-directory > #Temporary location for files needing names changed etc. Once done, they > move up to main directory. I don’t quite understand the formatting of that line. But basically, you have a directory for your videos, and in a subdiractory of that, you collect your temporary files? > A typical command for mv would be like this. > > mv sub-directory/<file name of new file> <file name of old file in main > directory> OK. That could actually be automated in a way. How many files per directory are we talking about? Because one approach I can think of is a managament script. It goes through all the files in your temp subdir, and for each file it asks you which file to overwrite in the main directory. It then moves the file, but keeps the extension as in my first script. But this isn’t practical if there are dozens of files in the main dir, because you would have to scroll through the big selection ist. As an example, let’s assume we have the following file tree: main ├── episode 1.mkv ├── episode 2.mpeg ├── episode 3.avi └── temp └── episode 2 with better quality.mkv You cd into main, and start the script. It checks for the presence of the temp dir and, if it exists, asks for each of its files what to do: main$ VideoCleanupScript Select file to overwrite with 'episode 2 with better quality.mkv': 1) episode 1.mkv 2) episode 2.mpeg 3) episode 3.avi #? 2 Removing 'episode 2.mpeg' Moving file 'episode 2 with better quality.mkv' -> 'episode 2.mkv' > Just trying to follow this and figure out how to use it. ;-) I've said > this before, my scripting skills are so small it isn't funny. :/ I could write the above script in probably half an hour. Just say when. ;-) I, too, have a few scripts that move files around. For example when I edit photo albums, I do a final re-encoding of those images in different JPEG quality levels as a trade-off between quality and storage space. For that I have a script that asks me which level to keep whilst I look at the different versions in a viewer. I then decide for one and the script picks the appropriate file and moves it into the final folder. The other choices are moved away so that if I halt the script midway, I can call it again and pick up where I left it. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. Of all the people I’ve met you’re certainly one of them. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* [gentoo-user] Re: Dolphin and adding a option, if it exists. 2022-10-23 11:16 ` Dale 2022-10-23 11:57 ` Frank Steinmetzger @ 2022-10-24 13:49 ` Grant Edwards 2022-10-24 22:08 ` Peter Humphrey 1 sibling, 1 reply; 46+ messages in thread From: Grant Edwards @ 2022-10-24 13:49 UTC (permalink / raw To: gentoo-user On 2022-10-23, Dale <rdalek1967@gmail.com> wrote: > That is true on Linux. Most linux software could care less what the > extension is or if it even has one. Heck, you could likely change a > .mp4 to .txt and it would open with a video player just by clicking on > it. Thing is, if I share a file with someone who uses windoze, I'm not > sure if it would work the same way. A wrong extension could cause > problems, either not opening at all or crashing something. It's > windoze, one can't expect much. ROFL A friend of mine once spent days trying to re-encode a video file into a format that could be handled by a particular windows app. No matter what codecs/parameters he tried, the app couldn't open the file. He finally figured out that the app in question had hard requirements for the filename suffix, and they chose a somewhat non-nstandard extension for that container format. It turned out that any of the codec/parameter combinations would have been fine, it was just the filename that was causing the problem. -- Grant ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Re: Dolphin and adding a option, if it exists. 2022-10-24 13:49 ` [gentoo-user] " Grant Edwards @ 2022-10-24 22:08 ` Peter Humphrey 0 siblings, 0 replies; 46+ messages in thread From: Peter Humphrey @ 2022-10-24 22:08 UTC (permalink / raw To: gentoo-user On Monday, 24 October 2022 14:49:46 BST Grant Edwards wrote: > On 2022-10-23, Dale <rdalek1967@gmail.com> wrote: > > That is true on Linux. Most linux software could care less what the > > extension is or if it even has one. Heck, you could likely change a > > .mp4 to .txt and it would open with a video player just by clicking on > > it. Thing is, if I share a file with someone who uses windoze, I'm not > > sure if it would work the same way. A wrong extension could cause > > problems, either not opening at all or crashing something. It's > > windoze, one can't expect much. ROFL > > A friend of mine once spent days trying to re-encode a video file into > a format that could be handled by a particular windows app. No matter > what codecs/parameters he tried, the app couldn't open the file. He > finally figured out that the app in question had hard requirements for > the filename suffix, and they chose a somewhat non-nstandard extension > for that container format. > > It turned out that any of the codec/parameter combinations would have > been fine, it was just the filename that was causing the problem. So the hubris of those two college dropouts still haunts the Windows world. What a legacy. -- Regards, Peter. ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-23 9:41 ` Frank Steinmetzger 2022-10-23 11:16 ` Dale @ 2022-11-22 9:59 ` Dale 2022-11-22 10:07 ` Frank Steinmetzger 1 sibling, 1 reply; 46+ messages in thread From: Dale @ 2022-11-22 9:59 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale: > >> Well, I ran into a slight problem. This isn't much of a problem with >> Linux but I'm not sure how this would work on windoze tho. The problem, >> if it is one, is the file extension. Let's say I have a mp4 file that >> is the older original file that I intend to replace. If the file I >> intend to put in its place is a .mkv file, mv uses the .mp4 extension >> because all it cares about is the name of the file, not what it is or >> its content. So, I end up with a .mkv file that has a .mp4 extension. >> It works here on Linux but not sure about windoze and such. > It’s not a problem for as long as the application you open the file with > does its own detection. I.e. you feed mp4 to mpv, but it recognises by > itself that it’s mp4 and can handle it. > >> I looked at the man page and I don't see a way to tell it to retain the >> extension. I see something about suffix but I don't think that is >> related to this. If I just backspace and change the extension, it >> basically moves the file and I end up with both the old and new file. I >> wish I could write code and create a tool for this. :/ >> >> Is there a way to work around this problem? It works great except for >> losing the file extension. > If you still want to stick to a terminal solution akin to mv, then there is > no way around a little script which wraps mv by extracting the extension and > filename base. You could also add some “intelligence” with regards to > directories, in order to reduce the amount of effort required to use the > command—in case your directories follow some schema or are constant. > > > #!/usr/bin/sh > > [ "$#" -ne "2" ] && exit 1 > SRC="$1" > DST="$2" > > SRC_EXT="${SRC##*.}" > DST_BASE="${DST%.*}" > > # remove destination for the case that the extensions differ > rm "$DST" > > mv "$SRC" "${DST_BASE}${SRC_EXT}" > I finally got a chance to try this. I saved it and made it executable. It runs but gave me this error. dmv torrent/video_name-old-place.mp4 video-name-new-place.mp4 bash: /bin/dmv: /usr/bin/sh: bad interpreter: No such file or directory dale@fireball ~/Desktop/Crypt/Series $ My scripting skills are minimal at best. Still, I kinda got what your script was doing. Those who have known me for a while understand how miraculous that is. ROFL I did some googling. It seems to not be able to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin here. It's in /bin tho. I edited that line so it can find it. When I tried it, it worked but noticed another problem. It was leaving out the dot, ".", before the extension. Back into the script I went. I revved up my gears for a bit and made a edit. When I tried it again, I was shocked. I almost fell in the floor. Dang thing worked perfectly with me only having to edit once. I really did get how the script works, sort of. O_O This is the script as shown by cat: root@fireball / # cat /bin/dmv #!/bin/sh [ "$#" -ne "2" ] && exit 1 SRC="$1" DST="$2" SRC_EXT="${SRC##*.}" DST_BASE="${DST%.*}" # remove destination for the case that the extensions differ rm "$DST" mv "$SRC" "${DST_BASE}.${SRC_EXT}" root@fireball / # I added a little . on that last line before the extension bit. I'm a happy camper. Only thing is, turns out both source and destination file have the same extension in this case. Still, I bet it will work. Then I thought of a way to test this. I just changed the extension on the destination file and did a move. I changed the .mp4 to .mkv on the destination. When I used your move script, it used the .mp4 extension from the original source file but used the old name. Perfect!! Hope this makes the point. THANK YOU MUCH!!!! Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 9:59 ` [gentoo-user] " Dale @ 2022-11-22 10:07 ` Frank Steinmetzger 2022-11-22 12:17 ` Dale 2022-11-22 19:14 ` Wol 0 siblings, 2 replies; 46+ messages in thread From: Frank Steinmetzger @ 2022-11-22 10:07 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2211 bytes --] Am Tue, Nov 22, 2022 at 03:59:27AM -0600 schrieb Dale: > > If you still want to stick to a terminal solution akin to mv, then there is > > no way around a little script which wraps mv by extracting the extension and > > filename base. You could also add some “intelligence” with regards to > > directories, in order to reduce the amount of effort required to use the > > command—in case your directories follow some schema or are constant. > > > > > > #!/usr/bin/sh > > > > [ "$#" -ne "2" ] && exit 1 > > SRC="$1" > > DST="$2" > > > > SRC_EXT="${SRC##*.}" > > DST_BASE="${DST%.*}" > > > > # remove destination for the case that the extensions differ > > rm "$DST" > > > > mv "$SRC" "${DST_BASE}${SRC_EXT}" > > > > I finally got a chance to try this. I saved it and made it executable. > It runs but gave me this error. > > > dmv torrent/video_name-old-place.mp4 video-name-new-place.mp4 > bash: /bin/dmv: /usr/bin/sh: bad interpreter: No such file or directory > dale@fireball ~/Desktop/Crypt/Series $ > > > My scripting skills are minimal at best. Still, I kinda got what your > script was doing. Those who have known me for a while understand how > miraculous that is. ROFL I did some googling. It seems to not be able > to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin > here. It's in /bin tho. I edited that line so it can find it. When I > tried it, it worked but noticed another problem. […] Well, it would have been boring to provide you with a turn-key solution. ;-) Congrats on getting it working. In my Arch setup, sh is in /usr/bin. A flexible solution is to use #!/usr/bin/env sh, which looks the command up before executing it. > I added a little . on that last line before the extension bit. I'm a > happy camper. Give me a nudge if you want the more luxurious version with interactive selection of the overwrite destination. I think I already started a prototype somewhere, but can’t find it right now. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. The best thing about Sundays is Saturday evening. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 10:07 ` Frank Steinmetzger @ 2022-11-22 12:17 ` Dale [not found] ` <7773a6e5-4b60-495f-8889-411c1a7def96@PRAP251MB0466.EURP251.PROD.OUTLOOK.COM> 2022-11-23 11:39 ` Frank Steinmetzger 2022-11-22 19:14 ` Wol 1 sibling, 2 replies; 46+ messages in thread From: Dale @ 2022-11-22 12:17 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > Am Tue, Nov 22, 2022 at 03:59:27AM -0600 schrieb Dale: > >>> If you still want to stick to a terminal solution akin to mv, then there is >>> no way around a little script which wraps mv by extracting the extension and >>> filename base. You could also add some “intelligence” with regards to >>> directories, in order to reduce the amount of effort required to use the >>> command—in case your directories follow some schema or are constant. >>> >>> >>> #!/usr/bin/sh >>> >>> [ "$#" -ne "2" ] && exit 1 >>> SRC="$1" >>> DST="$2" >>> >>> SRC_EXT="${SRC##*.}" >>> DST_BASE="${DST%.*}" >>> >>> # remove destination for the case that the extensions differ >>> rm "$DST" >>> >>> mv "$SRC" "${DST_BASE}${SRC_EXT}" >>> >> I finally got a chance to try this. I saved it and made it executable. >> It runs but gave me this error. >> >> >> dmv torrent/video_name-old-place.mp4 video-name-new-place.mp4 >> bash: /bin/dmv: /usr/bin/sh: bad interpreter: No such file or directory >> dale@fireball ~/Desktop/Crypt/Series $ >> >> >> My scripting skills are minimal at best. Still, I kinda got what your >> script was doing. Those who have known me for a while understand how >> miraculous that is. ROFL I did some googling. It seems to not be able >> to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin >> here. It's in /bin tho. I edited that line so it can find it. When I >> tried it, it worked but noticed another problem. […] > Well, it would have been boring to provide you with a turn-key solution. ;-) > Congrats on getting it working. In my Arch setup, sh is in /usr/bin. A > flexible solution is to use #!/usr/bin/env sh, which looks the command up > before executing it. > >> I added a little . on that last line before the extension bit. I'm a >> happy camper. > Give me a nudge if you want the more luxurious version with interactive > selection of the overwrite destination. I think I already started a > prototype somewhere, but can’t find it right now. > Feel free to share. Even if I don't use it, someone else may find it and make good use of it. It's one reason I posted the corrected version and why I changed what I did. Someone else just may run up on this and find it helpful as well. If possible and you have time, describe a bit what each part does. Usually when I do this, I have several videos, anywhere from 10 to sometimes 30 or more. Sometimes I wish it could 'detect' which new one goes with which old one. Thing is, I don't know if a script can do this or not. Sometimes the new is named pretty different from the old. I don't think a script could do it reliably. If things were more consistent, maybe, but there is a lot of differences at times. Your scripts at least keeps the extension correct without adding any more effort on my part, except having to type dmv instead of mv. I chose d since the first letter of my name is d. It was something. lol The current script sure is handy tho. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
[parent not found: <7773a6e5-4b60-495f-8889-411c1a7def96@PRAP251MB0466.EURP251.PROD.OUTLOOK.COM>]
* Re: Undeliverable: Re: [gentoo-user] Dolphin and adding a option, if it exists. [not found] ` <7773a6e5-4b60-495f-8889-411c1a7def96@PRAP251MB0466.EURP251.PROD.OUTLOOK.COM> @ 2022-11-22 21:58 ` Dale 2022-11-23 0:06 ` Wols Lists 2023-01-27 13:54 ` Peter Humphrey 0 siblings, 2 replies; 46+ messages in thread From: Dale @ 2022-11-22 21:58 UTC (permalink / raw To: Gentoo User [-- Attachment #1: Type: text/plain, Size: 11140 bytes --] I'm top posting for those who want to ignore this message. This is the second message like this I've received. Is anyone else getting these? Did someone close their email account and not unsubscribe or something? Is this just me? Dale postmaster@outlook.com wrote: > > *Delivery has failed to these recipients or groups:* > > ynasida@gmail.com <mailto:ynasida@gmail.com> > Your message wasn't delivered because the recipient's email provider > rejected it. > > > > > > > > *Diagnostic information for administrators:* > > Generating server: PRAP251MB0466.EURP251.PROD.OUTLOOK.COM > > ynasida@gmail.com > Remote Server returned '550-5.7.26 This message does not pass > authentication checks (SPF and DKIM both 550-5.7.26 do not pass). SPF > check for [gmail.com] does not pass with ip: 550-5.7.26 > [2a01:111:f400:7eaf::204].To best protect our users from spam, the > 550-5.7.26 message has been blocked. Please visit 550-5.7.26 > https://support.google.com/mail/answer/81126#authentication for more > 550 5.7.26 information. > xa11-20020a170906fd8b00b007306ac0faa0si6133130ejb.615 - gsmtp' > > Original message headers: > > Received: from GV1P251MB0820.EURP251.PROD.OUTLOOK.COM (2603:10a6:150:54::14) > by PRAP251MB0466.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:29e::22) with > Microsoft SMTP Server (version=TLS1_2, > cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Tue, 22 Nov > 2022 21:23:39 +0000 > Resent-From: <nasida@live.ru> > Received: from GV1P251MB0820.EURP251.PROD.OUTLOOK.COM ([::1]) by > GV1P251MB0820.EURP251.PROD.OUTLOOK.COM ([fe80::6878:35dd:b953:ef89%4]) with > Microsoft SMTP Server id 15.20.5834.015; Tue, 22 Nov 2022 21:23:39 +0000 > Authentication-Results: spf=pass (sender IP is 208.92.234.80) > smtp.mailfrom=lists.gentoo.org; dkim=fail (signature did not verify) > header.d=gmail.com;dmarc=fail action=none header.from=gmail.com; > Received-SPF: Pass (protection.outlook.com: domain of lists.gentoo.org > designates 208.92.234.80 as permitted sender) > receiver=protection.outlook.com; client-ip=208.92.234.80; > helo=lists.gentoo.org; pr=C > X-IncomingTopHeaderMarker: OriginalChecksum:22A416AC62C148C6F5FBC72EA0ED8DEB92B241D6DBE70B62803D0E18B1BE751B;UpperCasedChecksum:3191C1B4AD7059C30B11C6B43823F31E6E37A6A2C1FDE1AE849A7142E3E01BCA;SizeAsReceived:7544;Count:33 > X-Original-To: gentoo-user@lists.gentoo.org > Delivered-To: gentoo-user@lists.gentoo.org > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=gmail.com; s=20210112; > h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date > :message-id:autocrypt:openpgp:from:references:to:subject:from:to:cc > :subject:date:message-id:reply-to; > bh=ne9VPs4b5lbB5/RCr+F1WYGhNj1fmodNWnMe9j7W9g8=; > b=WqygQYztMUblqb3Xe0D1+3cg+hg9DwN772sLy9PhRZVqFuEW0fbcV/YftUGs6peM7r > FbXx8m4nFbJTMSg2hqY9NezTnRWwFmmUOXfjvvl4Dh2V9sifaACMpGIoDgdWYr46xiRC > FvNlvZIqUgKaoElbCDHgkyjMlEb6gFJPBxfD7lowCBhqrsAKPa1kpOlJmSSzQCpQdlZO > NDw2I27Y9x5GIxmf0DABcwNqsVZueX514V9VGXi7FR6w58lV54hR9KngVkdau8gFb3tC > r5WeoXnbF8IC26S3S4cwRrmanXMwgFmi+mDB3Vu5CGONEEN73ssS/A9UYz6a8pFiRQxc > K5DA== > X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; > d=1e100.net; s=20210112; > h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date > :message-id:autocrypt:openpgp:from:references:to:subject > :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; > bh=ne9VPs4b5lbB5/RCr+F1WYGhNj1fmodNWnMe9j7W9g8=; > b=V0UmY6sv+bVM8iz3kMC6PTY5ufT6LfZESEcBA91SkLQe+R/qdq+tg5iZ/QwK9Pqh8C > tfCOptHdDudS0dAZ5a6TUOvwUdie3d3m4ELg/a3yWi3us21A3f82KHORROahcrksjecR > wBlMmUysmjC27585YzUp0upkSwyeR8SEMjtUpgN2LGsyilOYRLGdmB95ZsS8VI2k4mpW > XohoGiFsrVo/8GYn7g2/hk009VXVKsLvCS6ATm/Ai6So+8TDO0dA5eBbQvtw2A0BwwTp > HemsTRDbjRS2WnG3R/DvUnWRyPe4IsinXUQntt1YTnnCA/QC9PDVqkWKg/afOMWinA66 > Gm6g== > X-Gm-Message-State: ANoB5pkNt5EJxJbvCKoEz4Ao6MxSiMmdYIhF0pyXKwyLy71oU2r7vW0/ > yV8gsPO+GoqhF+72xUMvtZk= > X-Google-Smtp-Source: AA0mqf7lI23DbvdvDQb7wxdOFhOgXoXQroSk1A02Gf7RcL8XiqiEZ1Qfkp42H06TNmvq/OjPasU3vA== > X-Received: by 2002:ad4:50ac:0:b0:4bb:ce03:5714 with SMTP id d12-20020ad450ac000000b004bbce035714mr10098698qvq.30.1669119431594; > Tue, 22 Nov 2022 04:17:11 -0800 (PST) > Subject: Re: [gentoo-user] Dolphin and adding a option, if it exists. > To: gentoo-user@lists.gentoo.org > References: <6ef36d93-4d8a-d9a4-ca71-396040103a25@gmail.com> > <CAJjrzcVJtM8Fv9jGeK7zDySwYnbYUP0KEyU1qXZww4_1UENNjw@mail.gmail.com> > <20221006134500.6f0812b9@digimed.co.uk> > <eab7078d-5910-97f2-bbc9-0013ffca723d@gmail.com> > <62ebaa87-f750-b233-f8b4-ee50ef00bdfa@gmail.com> <Y1UMWH5m4UtISJf3@tp> > <a03cce6d-fba9-dac8-d035-0a3e0c57895d@gmail.com> <Y3yfSaXVo0pYUStB@tp> > From: Dale <rdalek1967@gmail.com> > Openpgp: preference=signencrypt > Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= > mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i > oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI > wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh > Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ > 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 > be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C > R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P > wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 > d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO > OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs > ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AW > IQQSG1h01ruv/WNXc3Q3RqOgiQH1GwUCYVJy8gAKCRA3RqOgiQH1G+waEACeTZCt77jnRAmQ > AV7otKuZekDWiLi3Eig8tj5ZJiCNSYA/hIxzmexRP0GMqjitcXK1iGwWcvMzzvIq30GAjIfB > 4BR38cnXbtBa6fNewiT7QaZe/Hn6yBRldXNQypzbHy+/o27bUEy+oX4rE7etUgEHQAjuw7xz > XFWg4tH1/KJvsOVY5upnWc5LdxYhsuQ3dQD4b22GsK0pOBDfb9PiirYM8eGKvrVuq4E/c75z > lDDFhINl18lNZ9D0ZFL3IkTjHsAAqFH9uhnnEB8CWdHbBewPEfRaOhBUYWZ3Q8uTkmDgZT8q > D9jlvLEdw7Nh2ApdxoepnI/4D+ql2Gr4DtH7SEPydr5gcf1Qr/2bXRb1hAYnIVcbncs/Bm3Z > bkRKPVWMfE3Fusa+p5hMzixk0YysMaTHlc7mYRYAEZGnPMXnmcCbetwARU7A0yz1M1kCMOAQ > Lsz8KH5kv3cRenMB6SFfjND2JfAK61H5TtnPq3L8noS2ZykRYxq9Nm3X64O1tJojIKBoZFr8 > AwYNCvqC6puUyGMuzHPh7jPof8glfrrEKIYUvNPGMDoVX3IGetxh/9l6NcxgFA4JGoR+LS3C > zmeNrwlllAe3OEUfKoWVQ+pagpSdM+8hHolaSda4Ys66Z3fCR4ZvcTqfhTAVskpqdXa4isAk > 7vTcXu3L499ttywEp7rJTbkCDQRhUnImARAAncUdVhmtRr59zqpTUppKroQYlzR0jv8oa7DG > K4gakTAT2N7evnI9wpssmzyVk8VEiLzhnFQ/Ol3FRt6hZCXDJt0clyHOyTfvz/MNFttWuZTc > mLpSvmRR6VRjAH+Tz3Eam2xUw3PGuH97BcXQ3NnX3msv1UDxtxxBu6e2YrdeOhrCUSgzokcJ > 98ChUNy934cgepPybAI12lSWqVFQ1aG7jExZfiUk+333fPSDbpKoZbTW5YJLXbycmW/C1IWL > qYQyNjRWKaGoJtUWFhhmNiOQct7n90aKivNVPavmN+UQ9LlMaINtf9T6XCzLfogCFsulDCDJ > 0yNQLDTurHaB4E71xoctgXmLLq9z1RQ0W2XiVAAOZQj6K3+d0AOUjDhCQ2QW8dUSq0ckkZXV > DKVJOGS8Nhf2eIWIqRnP3AcUiiaiFGqUaVUmUAZ6h/oJmgghEu/1S+pcuUKU5i69+XCZ3hH2 > Jzwzbf7K+FAIkOhCfHncF8i1N1pk00pOVykNnqHTfFo3qFusHt0ZWgXVnnn4pYdXqZNoDhvF > BRE5Vm4k/k96Pw8HRx6Os6eFSRrlqGzRgqsu86FekxusXB9UGv4lJhtU/J+8MRWsh22K718s > DbQnABicGKFz1qQlWvcf59oTByhLINJCBt1WXl+TzJDXepr3QSkqmK41dO9Hob97C9dMiK8A > EQEAAYkCNgQYAQgAIAIbDBYhBBIbWHTWu6/9Y1dzdDdGo6CJAfUbBQJhUnLyAAoJEDdGo6CJ > AfUbVHIQAKSWw620vPhR3A/njU2z77F3z/Jk+HTKdE3fIyWSWdkYN7CBFL0NguOMP30WZ+qE > sJhZu7T5hf251MwQUUt27xlfnKYOmQs7CqONlXuXlGZI6WufrUjxNcVz+5gJsqvUWuuJWsgg > sDmE92IBnfG/f81fPHWQyfr/SF4wYDMyoFp5xCCQpp1zB63iuFvvrhxBkEHzmbRtVDOhl0Xp > BVEDR1w3QRACw9QJD/KM05Czv9JNQYlwinWO/OaQ9cMlUpKLgswUPg9IZ5vucxScfuAUA5uC > B1jlAQ8ZPlVukBmbEv5RGOv+lpuEbA3YDMVtEeH4YMFbjt/+vH3Cr2vTbp5JlpByLburJEH0 > WXZLUawEfUsZvVwpOuJK75vaa2HYXee+Cb3iCIzwfIfctdlqzUcbGRczlRNM59hpvj4z29Gh > 3kAxVHItAYq54ikxQ9l4hQ8s9sLYPbX/WtcBxNX8crBSw0FLnmzGleVEtBHyqtt5CLzQNgrj > GYWl1vKDUmRPw1CdZ1c+fMN9CY11jOM5B5ZnqZWfDeVYO2iJ5SuvTycChexCb8WYn1bdCBIo > bBtga2RBXbVt4Mh9E4owsszefn51MwfjXxB20Fc5k3GU1AVpTCMs3ayYCzo0b2pvEvdjtDcA > CYLEFPWgaFX9iQAM/CDfKvTtvgGWpqtCL2raq/mQoJEU > Message-ID: <a12cbe0a-d9b9-d322-2a3e-64d8412d33c5@gmail.com> > Date: Tue, 22 Nov 2022 06:17:09 -0600 > User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 > Firefox/68.0 SeaMonkey/2.53.14 > Precedence: bulk > List-Post: <mailto:gentoo-user@lists.gentoo.org> > List-Help: <mailto:gentoo-user+help@lists.gentoo.org> > List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> > List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> > List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> > X-BeenThere: gentoo-user@lists.gentoo.org > Reply-To: gentoo-user@lists.gentoo.org > X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply > MIME-Version: 1.0 > In-Reply-To: <Y3yfSaXVo0pYUStB@tp> > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > X-IncomingHeaderCount: 33 > Return-Path: rdalek1967@gmail.com > X-EOPAttributedMessage: 0 > X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0 > X-MS-PublicTrafficType: Email > X-MS-TrafficTypeDiagnostic: > DB8EUR05FT064:EE_|AS8P251MB0829:EE_|GV1P251MB0820:EE_|PRAP251MB0466:EE_ > X-MS-UserLastLogonTime: 8/6/2022 5:45:00 PM > X-MS-Office365-Filtering-Correlation-Id: 8ebd48ed-41d0-4c13-07c0-08dacc838952 > X-MS-DelayedDelivery: true > X-MS-Exchange-EOPDirect: true > X-Sender-IP: 208.92.234.80 > X-SID-PRA: RDALEK1967@GMAIL.COM > X-SID-Result: FAIL > X-Microsoft-Antispam: BCL:0; > X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2022 12:17:34.1264 > (UTC) > X-MS-Exchange-CrossTenant-Network-Message-Id: 8ebd48ed-41d0-4c13-07c0-08dacc838952 > X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa > X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT064.eop-eur05.prod.protection.outlook.com > X-MS-Exchange-CrossTenant-AuthAs: Anonymous > X-MS-Exchange-CrossTenant-FromEntityHeader: Internet > X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 > X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P251MB0829 > X-MS-Exchange-Transport-EndToEndLatency: 09:06:04.6575538 > X-MS-Exchange-Processed-By-BccFoldering: 15.20.5834.015 > X-MS-Exchange-Inbox-Rules-Loop: nasida@live.ru > X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-00b75.templateTenant > > Reporting-MTA: dns;PRAP251MB0466.EURP251.PROD.OUTLOOK.COM > Received-From-MTA: dns;GV1P251MB0820.EURP251.PROD.OUTLOOK.COM > Arrival-Date: Tue, 22 Nov 2022 21:23:39 +0000 > > Final-Recipient: rfc822;ynasida@gmail.com > Action: failed > Status: 5.7.26 > Diagnostic-Code: smtp;550-5.7.26 This message does not pass authentication checks (SPF and DKIM both > 550-5.7.26 do not pass). SPF check for [gmail.com] does not pass with ip: > 550-5.7.26 [2a01:111:f400:7eaf::204].To best protect our users from spam, the > 550-5.7.26 message has been blocked. Please visit > 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more > 550 5.7.26 information. xa11-20020a170906fd8b00b007306ac0faa0si6133130ejb.615 - gsmtp > [-- Attachment #2: Type: text/html, Size: 14693 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: Undeliverable: Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 21:58 ` Undeliverable: " Dale @ 2022-11-23 0:06 ` Wols Lists 2022-11-23 4:32 ` Dale 2023-01-27 13:54 ` Peter Humphrey 1 sibling, 1 reply; 46+ messages in thread From: Wols Lists @ 2022-11-23 0:06 UTC (permalink / raw To: gentoo-user On 22/11/2022 21:58, Dale wrote: > I'm top posting for those who want to ignore this message. > > This is the second message like this I've received. Is anyone else > getting these? Did someone close their email account and not > unsubscribe or something? Is this just me? No it's not just you. I'm getting them as well. My ISP is blaming Microsoft but that doesn't seem to be the case with you. I think there's been a global update of spam rules, and the big providers seem to be having a spate of mis-classifying ham. My wife sent an email to a friend (with an attachment) and it got caught by MS's automated spam rules. No idea, no obvious spammy triggers ... > > Dale > Cheers, Wol > > postmaster@outlook.com wrote: >> >> *Delivery has failed to these recipients or groups:* >> >> ynasida@gmail.com <mailto:ynasida@gmail.com> >> Your message wasn't delivered because the recipient's email provider >> rejected it. >> >> ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: Undeliverable: Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 0:06 ` Wols Lists @ 2022-11-23 4:32 ` Dale 0 siblings, 0 replies; 46+ messages in thread From: Dale @ 2022-11-23 4:32 UTC (permalink / raw To: gentoo-user Wols Lists wrote: > On 22/11/2022 21:58, Dale wrote: >> I'm top posting for those who want to ignore this message. >> >> This is the second message like this I've received. Is anyone else >> getting these? Did someone close their email account and not >> unsubscribe or something? Is this just me? > > No it's not just you. I'm getting them as well. My ISP is blaming > Microsoft but that doesn't seem to be the case with you. > > I think there's been a global update of spam rules, and the big > providers seem to be having a spate of mis-classifying ham. > > My wife sent an email to a friend (with an attachment) and it got > caught by MS's automated spam rules. No idea, no obvious spammy > triggers ... >> >> Dale >> > Cheers, > Wol To me, I thought maybe it was being bounced??? I was wondering, could someone check to see who is subscribed that is causing these to be generated? I think there is a few devs on here and if we are getting these messages, maybe they are to and will look into it. I know Rich is on here but doubt he has access but may know who does. Hello Rich!! :-D If not, I may filter them to the trash. I'm wanting posts from Frank and his scripts not some stupid message about something being spam when it's not even meat at all. It's more like green beans or something. ROFL Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: Undeliverable: Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 21:58 ` Undeliverable: " Dale 2022-11-23 0:06 ` Wols Lists @ 2023-01-27 13:54 ` Peter Humphrey 2023-01-29 15:18 ` Peter Humphrey 1 sibling, 1 reply; 46+ messages in thread From: Peter Humphrey @ 2023-01-27 13:54 UTC (permalink / raw To: gentoo-user On Tuesday, 22 November 2022 21:58:45 GMT Dale wrote: > I'm top posting for those who want to ignore this message. > > This is the second message like this I've received. Is anyone else > getting these? Did someone close their email account and not > unsubscribe or something? Is this just me? I've just had one this morning, Dale. There seems to be a problem with missing SPF or DKIM in my outgoing messages. I'm in touch with my ISP about it. -- Regards, Peter. ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: Undeliverable: Re: [gentoo-user] Dolphin and adding a option, if it exists. 2023-01-27 13:54 ` Peter Humphrey @ 2023-01-29 15:18 ` Peter Humphrey 0 siblings, 0 replies; 46+ messages in thread From: Peter Humphrey @ 2023-01-29 15:18 UTC (permalink / raw To: gentoo-user On Friday, 27 January 2023 13:54:45 GMT Peter Humphrey wrote: > On Tuesday, 22 November 2022 21:58:45 GMT Dale wrote: > > I'm top posting for those who want to ignore this message. > > > > This is the second message like this I've received. Is anyone else > > getting these? Did someone close their email account and not > > unsubscribe or something? Is this just me? > > I've just had one this morning, Dale. There seems to be a problem with > missing SPF or DKIM in my outgoing messages. I'm in touch with my ISP about > it. Well, that didn't work out well. Their man didn't know what an email list is, so he had trouble understanding me. Molto cross-purposes. I think someone Out There is messing about with headers, I assume to achieve something nefarious. I propose to ignore it, as the systems are apparently working as advertised. -- Regards, Peter. ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 12:17 ` Dale [not found] ` <7773a6e5-4b60-495f-8889-411c1a7def96@PRAP251MB0466.EURP251.PROD.OUTLOOK.COM> @ 2022-11-23 11:39 ` Frank Steinmetzger 2022-11-23 11:54 ` Dale 1 sibling, 1 reply; 46+ messages in thread From: Frank Steinmetzger @ 2022-11-23 11:39 UTC (permalink / raw To: gentoo-user [-- Attachment #1.1: Type: text/plain, Size: 1083 bytes --] Am Tue, Nov 22, 2022 at 06:17:09AM -0600 schrieb Dale: > Frank Steinmetzger wrote: > >> I added a little . on that last line before the extension bit. I'm a > >> happy camper. > > Give me a nudge if you want the more luxurious version with interactive > > selection of the overwrite destination. I think I already started a > > prototype somewhere, but can’t find it right now. > > > > Feel free to share. Even if I don't use it, someone else may find it > and make good use of it. There ya goo. As I suspected, I already wrote most of it in October right away, I only couldn’t find the file until now. I just had to fix the same bugs as in the first script (and some more in the additional parts :D ), and put some more grease into the interal logic and output strings. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. “To some degree people say you should not micro-optimise. But if what you love is micro-optimisation, that’s what you should do.” – Linus Torvalds [-- Attachment #1.2: Mv --] [-- Type: text/plain, Size: 2977 bytes --] #!/usr/bin/env bash # author: Frank Steinmetzger # version: 2022-11-23 # Helper functions ------------------------------------------------------------ # oops, something occured and the script must exit with an error message die() { echo "$PROGNAME error: ${@}" > /dev/stderr exit 1 } # move a file after printing an info text move() { echo " Moving '${1##*/}' -> '$2'" mv -f "$1" "$2" } # print help text usage() { cat <<-EOF $PROGNAME: replace files in one dir with files from another, but keeping the extension Synposis: $PROGNAME [-h|-s DIR] -h show this help and exit -s the source directory from which to pick files. Default: ./$SRC_DIR EOF } # Preamble -------------------------------------------------------------------- PROGNAME="$(basename "$0")" # halt script on any uncaught error set -e # the default directory SRC_DIR="temp" # parse arguments while getopts "hs:" OPTION; do case $OPTION in h) usage; exit 0 ;; s) SRC_DIR="$OPTARG" ;; *) die "Unknown option '$OPTION'" ;; esac done # input sanitisation [ -d "$SRC_DIR" ] || die "'$SRC_DIR' is not a directory or does not exist." [ "$(readlink -m "$SRC_DIR")" = "$(readlink -m .)" ] && die 'Source dir equals destination dir.' # generate list of possible destination files declare -A DST_FILES for DST_FILE in *; do [ -f "$DST_FILE" ] || continue DST_FILES["$DST_FILE"]='' done # Main part ------------------------------------------------------------------- # loop over all files in the source dir for SRC_PATH in "$SRC_DIR"/*; do [ "$SRC_PATH" = "$SRC_DIR/*" ] && die 'Source dir is empty.' SRC_FILE="${SRC_PATH##*/}" # selection of destination file echo echo "Select destination for file '$SRC_FILE':" unset DST_FILE select DST_FILE in '[-skip-]' '[-keep as is-]' "${!DST_FILES[@]}"; do [ "$DST_FILE" ] && break done # don't do anything with the file if [ ! "$DST_FILE" ] || [ "$DST_FILE" = "[-skip-]" ]; then echo " Skipping '$SRC_FILE'" continue fi # move the file to destination without renaming if [ "$DST_FILE" = "[-keep as is-]" ]; then if [ -f "$SRC_FILE" ]; then echo -n "The file '$SRC_FILE' already exists. Overwrite? [y/N] " read INPUT if [ "$INPUT" != "y" ] && [ "$INPUT" != "Y" ]; then echo " Skipping '$SRC_FILE'" continue fi fi move "$SRC_PATH" "./$SRC_FILE" else # replace destination with source file SRC_EXT="${SRC_FILE##*.}" DST_BASE="${DST_FILE%.*}" NEW_DST_FILE="${DST_BASE}.${SRC_EXT}" if [ "$DST_FILE" != "$NEW_DST_FILE" ]; then echo " Removing '$DST_FILE'" rm -f "$DST_FILE" fi move "$SRC_PATH" "./$NEW_DST_FILE" # remove the destination file from future selections unset DST_FILES["$DST_FILE"] fi done [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 11:39 ` Frank Steinmetzger @ 2022-11-23 11:54 ` Dale 2022-11-23 12:00 ` Frank Steinmetzger 0 siblings, 1 reply; 46+ messages in thread From: Dale @ 2022-11-23 11:54 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > There ya goo. As I suspected, I already wrote most of it in October right > away, I only couldnt find the file until now. I just had to fix the same > bugs as in the first script (and some more in the additional parts :D ), > and put some more grease into the interal logic and output strings. > I saved it and then tried to figure it out. I got lost. I see the commented sections which kinda help I guess but still got lost. What does it try to do in simple terms? Or, how would I use it may be a better question? I been using the other script and it is coming in very handy. It saves me quite a bit of time. Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 11:54 ` Dale @ 2022-11-23 12:00 ` Frank Steinmetzger 2022-11-23 12:16 ` Dale 0 siblings, 1 reply; 46+ messages in thread From: Frank Steinmetzger @ 2022-11-23 12:00 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1608 bytes --] Am Wed, Nov 23, 2022 at 05:54:30AM -0600 schrieb Dale: > Frank Steinmetzger wrote: > > There ya goo. As I suspected, I already wrote most of it in October right > > away, I only couldnt find the file until now. I just had to fix the same > > bugs as in the first script (and some more in the additional parts :D ), > > and put some more grease into the interal logic and output strings. > > > > I saved it and then tried to figure it out. I got lost. I see the > commented sections which kinda help I guess but still got lost. I was kinda verbose on the comments for you. But in the end, you don’t need to understand every line of it. ;-) Suffice it to say it won’t syphon off your data to me. > What does it try to do in simple terms? Or, how would I use it may be a > better question? Look at my mail from 23.10., it has a textual description (the one with the file tree): it basically wraps the old script over all files. You have a directory 'A' with videos and a subdirectory 'A/temp' with new videos. Start the script in A and it will go through all files in A/temp and ask you what to do with each – skip (do nothing), keep (move to A without renaming), or overwrite a certain file in A (keeping the extension), which is the same as the old script. > I been using the other script and it is coming in very handy. It saves > me quite a bit of time. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. When I’m old I’ll do nothing but complain. That’ll be a blast. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 12:00 ` Frank Steinmetzger @ 2022-11-23 12:16 ` Dale 2022-11-23 13:05 ` Frank Steinmetzger 0 siblings, 1 reply; 46+ messages in thread From: Dale @ 2022-11-23 12:16 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > Am Wed, Nov 23, 2022 at 05:54:30AM -0600 schrieb Dale: >> Frank Steinmetzger wrote: >>> There ya goo. As I suspected, I already wrote most of it in October right >>> away, I only couldnt find the file until now. I just had to fix the same >>> bugs as in the first script (and some more in the additional parts :D ), >>> and put some more grease into the interal logic and output strings. >>> >> I saved it and then tried to figure it out. I got lost. I see the >> commented sections which kinda help I guess but still got lost. > I was kinda verbose on the comments for you. But in the end, you don’t need to > understand every line of it. ;-) Suffice it to say it won’t syphon off your > data to me. > > >> What does it try to do in simple terms? Or, how would I use it may be a >> better question? > Look at my mail from 23.10., it has a textual description (the one with the > file tree): it basically wraps the old script over all files. > > You have a directory 'A' with videos and a subdirectory 'A/temp' with new > videos. Start the script in A and it will go through all files in A/temp and > ask you what to do with each – skip (do nothing), keep (move to A without > renaming), or overwrite a certain file in A (keeping the extension), which is > the same as the old script. > >> I been using the other script and it is coming in very handy. It saves >> me quite a bit of time. OK. I think I get it. It's kinda like dispatch-conf except it is for files not lines in a file. No 'merge' option tho. Kinda hard to merge a video. lol I may try that sometime. I may copy the files to a different location just in case I screw up something. It won't be the real files so no harm if I botch it. This is mostly because I haven't seen it run before. I don't know what I'm doing. ;-) Since I usually name the directory torrent, I may edit that part. That or change the name on my directories to temp. If you have other scripts, I'd like to see them. Others might too. Someone may google for a way to do something and run up on them too. Dale :-) :-) P. S. Now I'm trying to figure out how to change the resolution of all videos in a directory. Usually going from 1080p to 720p. If you have a script for that, awesome. I'm currently using handbrake and it works but there may be a better way. ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 12:16 ` Dale @ 2022-11-23 13:05 ` Frank Steinmetzger 2022-11-23 18:17 ` Dale 0 siblings, 1 reply; 46+ messages in thread From: Frank Steinmetzger @ 2022-11-23 13:05 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2389 bytes --] Am Wed, Nov 23, 2022 at 06:16:12AM -0600 schrieb Dale: > >> What does it try to do in simple terms? Or, how would I use it may be a > >> better question? > > Look at my mail from 23.10., it has a textual description (the one with the > > file tree): it basically wraps the old script over all files. > > > > You have a directory 'A' with videos and a subdirectory 'A/temp' with new > > videos. Start the script in A and it will go through all files in A/temp and > > ask you what to do with each – skip (do nothing), keep (move to A without > > renaming), or overwrite a certain file in A (keeping the extension), which is > > the same as the old script. > > OK. I think I get it. It's kinda like dispatch-conf except it is for > files not lines in a file. No 'merge' option tho. Kinda hard to merge a > video. lol > > I may try that sometime. I may copy the files to a different location > just in case I screw up something. It won't be the real files so no harm > if I botch it. Always have a backup. ;-) I deny any responsibility for data loss. :-P If you want to try it before doing real stuff: you could comment the two lines where it says 'mv -f' and 'rm -f'. Then it won’t do anything, but there are still progress messages being printed. > P. S. Now I'm trying to figure out how to change the resolution of all > videos in a directory. Usually going from 1080p to 720p. If you have a > script for that, awesome. I use ffmpeg for all my encoding stuff, and have been using wrapper scripts for years now to make things easier. However, none of them has resized yet. It’s not difficult to configure, but the wrapper needs much more logic. As in: find out the current resolution, see if it is actually larger, then calculate the new resolution while keeping the aspect intact and so on. > I'm currently using handbrake and it works but there may be a better way. I know handbrake by name, have been aware of it for many a year, but never used it. In my Windows days I used VirtualDub for my editing stuff, and on Linux I’ve always used commandline tools, beginning with mencoder back in the day. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. I don’t mind dreaming in a foreign language. What bugs me are the subtitles! [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 13:05 ` Frank Steinmetzger @ 2022-11-23 18:17 ` Dale 2022-11-24 14:37 ` Michael 0 siblings, 1 reply; 46+ messages in thread From: Dale @ 2022-11-23 18:17 UTC (permalink / raw To: gentoo-user Frank Steinmetzger wrote: > Am Wed, Nov 23, 2022 at 06:16:12AM -0600 schrieb Dale: > >>>> What does it try to do in simple terms? Or, how would I use it may be a >>>> better question? >>> Look at my mail from 23.10., it has a textual description (the one with the >>> file tree): it basically wraps the old script over all files. >>> >>> You have a directory 'A' with videos and a subdirectory 'A/temp' with new >>> videos. Start the script in A and it will go through all files in A/temp and >>> ask you what to do with each – skip (do nothing), keep (move to A without >>> renaming), or overwrite a certain file in A (keeping the extension), which is >>> the same as the old script. >> OK. I think I get it. It's kinda like dispatch-conf except it is for >> files not lines in a file. No 'merge' option tho. Kinda hard to merge a >> video. lol >> >> I may try that sometime. I may copy the files to a different location >> just in case I screw up something. It won't be the real files so no harm >> if I botch it. > Always have a backup. ;-) > I deny any responsibility for data loss. :-P > > If you want to try it before doing real stuff: you could comment the two > lines where it says 'mv -f' and 'rm -f'. Then it won’t do anything, but > there are still progress messages being printed. I update my backups every week. I'm going to order another hard drive in a couple weeks. I'm looking at a 16TB. I've got to build a rig so I can use LVM on two drives. That 16TB won't last long with this new fiber internet. I still wish I could back up a large directory and split it into two parts. Have one part be directories starting with A through L and second one start with M and go through to Z. That would roughly split it into two pieces. Then I could use two drives for that directory. I use rsync but don't know of a way to split it. My biggest concern, I may do the wrong thing and mess up something. I have some videos that are hard to find. >> P. S. Now I'm trying to figure out how to change the resolution of all >> videos in a directory. Usually going from 1080p to 720p. If you have a >> script for that, awesome. > I use ffmpeg for all my encoding stuff, and have been using wrapper scripts > for years now to make things easier. However, none of them has resized yet. > It’s not difficult to configure, but the wrapper needs much more logic. As > in: find out the current resolution, see if it is actually larger, then > calculate the new resolution while keeping the aspect intact and so on. > I found commands for it but not a way to process lots of videos. Right now, I use the queue feature of handbrake. I set up a preset to make it the same each time. I set it to 720p and about 3MB data rate. Should be OK for my 32" TV. >> I'm currently using handbrake and it works but there may be a better way. > I know handbrake by name, have been aware of it for many a year, but never > used it. In my Windows days I used VirtualDub for my editing stuff, and on > Linux I’ve always used commandline tools, beginning with mencoder back in > the day. > I tried Kdenlive but couldn't figure it out. It may work better but if I can't figure it out, it isn't much help. lol Dale :-) :-) ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-23 18:17 ` Dale @ 2022-11-24 14:37 ` Michael 0 siblings, 0 replies; 46+ messages in thread From: Michael @ 2022-11-24 14:37 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2259 bytes --] On Wednesday, 23 November 2022 18:17:53 GMT Dale wrote: > Frank Steinmetzger wrote: > > Am Wed, Nov 23, 2022 at 06:16:12AM -0600 schrieb Dale: > >> P. S. Now I'm trying to figure out how to change the resolution of all > >> videos in a directory. Usually going from 1080p to 720p. If you have a > >> script for that, awesome. > > > > I use ffmpeg for all my encoding stuff, and have been using wrapper > > scripts > > for years now to make things easier. However, none of them has resized > > yet. > > It’s not difficult to configure, but the wrapper needs much more logic. As > > in: find out the current resolution, see if it is actually larger, then > > calculate the new resolution while keeping the aspect intact and so on. > > I found commands for it but not a way to process lots of videos. Right > now, I use the queue feature of handbrake. I set up a preset to make it > the same each time. I set it to 720p and about 3MB data rate. Should > be OK for my 32" TV. It depends how close you sit to the 32" screen. The closer you are the higher the resolution needed to avoid seeing individual pixels. If the size of the file is not important, I'd leave it at 1080p. You never know, you may obtain a bigger TV in the future. With ffmpeg you can use its scale filter to retain the same aspect ratio, but reduce the height: ffmpeg -i blah-1080.mp4 -vf scale=-1:720 -codec:v libx264 -crf 0 -codec:a aac blah-720.mp4 NOTES: 1. Run ffprobe to see what the original video codecs are and use an appropriate video/audio codec to suit your desired output. The video will have to be transcoded to a lower resolution, but the audio can be just copied over. 2. The -crf controls the quality of the quantizer - default is 23. I've set it at 0 to make it lossless, but this takes longer to process. You could instead use some tuning preset provided in the H.264 encoding guide linked to below: https://ffmpeg.org/ffmpeg-filters.html#scale https://trac.ffmpeg.org/wiki/Scaling http://trac.ffmpeg.org/wiki/Encode/H.264 Once you find your desired stanza to arrive at some optimal size-quality- processing time, you can modify Frank's script to resize and rename your videos. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-11-22 10:07 ` Frank Steinmetzger 2022-11-22 12:17 ` Dale @ 2022-11-22 19:14 ` Wol 1 sibling, 0 replies; 46+ messages in thread From: Wol @ 2022-11-22 19:14 UTC (permalink / raw To: gentoo-user On 22/11/2022 10:07, Frank Steinmetzger wrote: >> My scripting skills are minimal at best. Still, I kinda got what your >> script was doing. Those who have known me for a while understand how >> miraculous that is. ROFL I did some googling. It seems to not be able >> to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin >> here. It's in /bin tho. I edited that line so it can find it. When I >> tried it, it worked but noticed another problem. […] > Well, it would have been boring to provide you with a turn-key solution. 😉 > Congrats on getting it working. In my Arch setup, sh is in /usr/bin. A > flexible solution is to use #!/usr/bin/env sh, which looks the command up > before executing it. > Everything should be in /usr/bin. /bin should be a symlink to /usr/bin I believe. People like to blame that on systemd, but actually I believe the "change" predates systemd, and certainly has nothing whatsoever to do with Lennart. Most distros (especially systemd ones) are already there, Gentoo is actively migrating in that direction. And as someone who got bitten by that - writing a makefile (make install) - on Gentoo and then having it blow up on SUSE, that day can't come soon enough. Cheers, Wol ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-06 8:10 ` Arve Barsnes 2022-10-06 12:45 ` Neil Bothwick @ 2022-10-08 20:32 ` Frank Steinmetzger 2022-10-09 6:58 ` Arve Barsnes 1 sibling, 1 reply; 46+ messages in thread From: Frank Steinmetzger @ 2022-10-08 20:32 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2114 bytes --] Am Thu, Oct 06, 2022 at 10:10:52AM +0200 schrieb Arve Barsnes: > On Thu, 6 Oct 2022 at 06:40, Dale <rdalek1967@gmail.com> wrote: > > > > Howdy, > > > > This may not exist. If not, oh well. Sometimes when I'm moving files > > with Dolphin, I need a added feature. I tend to use split panes when I > > copy or move files. Quite often, I want to move files from one location > > to another and the new file use the same name as the old file I'm > > replacing. What I *wish* I could do, move the file from one pane to the > > other and drag the new file on top of the old file and it replace it > > with the name of the old file. As it is now, I have to bring up > > properties, select the name of the file, while not including the > > extension, and copy it, then close that window and open properties on > > the new file, highlight the old name, paste new name, close window, copy > > new file over and either delete old file or tell it to overwrite the > > file. Sometimes it has a different extension and I have to delete > > instead. > This is probably a case of Dolphin not being a good tool, unless it > has a built-in command-line? It has: F4. And the path of that terminal is synced with that of the current file view. That’s something you don’t get with Yakuake. > 1. Equivalent to your method > - Select old file, F2 (rename), ctrl+c, esc, select new file in other > pane, shift+F6 (move with rename), ctrl+v, enter Shift+F6 only moves without rename—only if the destination already exists. Dolphin has a „Copy address“ function: Ctrl+Alt+C. It will copy the absolute path of a file to the clipboard. Then you can use tab completion in the Dolphin terminal at the original file’s location and type: mv <Beginning of source file><Tab> and then insert the destination. This will at least save you from completion-tabbing through the destination directory. -- Grüße | Greetings | Qapla’ Please do not share anything from, with or about me on any social network. “She understands. She doesn’t comprehend.” – River Tam, Firefly [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 46+ messages in thread
* Re: [gentoo-user] Dolphin and adding a option, if it exists. 2022-10-08 20:32 ` Frank Steinmetzger @ 2022-10-09 6:58 ` Arve Barsnes 0 siblings, 0 replies; 46+ messages in thread From: Arve Barsnes @ 2022-10-09 6:58 UTC (permalink / raw To: gentoo-user On Sat, 8 Oct 2022 at 22:33, Frank Steinmetzger <Warp_7@gmx.de> wrote: > Am Thu, Oct 06, 2022 at 10:10:52AM +0200 schrieb Arve Barsnes: > > 1. Equivalent to your method > > - Select old file, F2 (rename), ctrl+c, esc, select new file in other > > pane, shift+F6 (move with rename), ctrl+v, enter > > Shift+F6 only moves without rename—only if the destination already > exists. Not sure what you mean here, although in essence any "rename" operation in this context is always just a "mv" anyway. Maybe you missed that I was talking about emelfm2, where shift+F6 lets you change the name of the file you want to move before moving it. If you change the name to something that exist in the destination, then you'll get asked if you want to replace it. Regards, Arve ^ permalink raw reply [flat|nested] 46+ messages in thread
end of thread, other threads:[~2023-01-29 15:18 UTC | newest] Thread overview: 46+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-10-06 4:39 [gentoo-user] Dolphin and adding a option, if it exists Dale 2022-10-06 7:33 ` Michael 2022-10-06 7:52 ` Wol 2022-10-06 7:57 ` Michael 2022-10-06 8:10 ` Arve Barsnes 2022-10-06 12:45 ` Neil Bothwick 2022-10-06 15:19 ` Ramon Fischer 2022-10-06 15:22 ` Ramon Fischer 2022-10-06 15:24 ` Neil Bothwick 2022-10-06 17:41 ` Dale 2022-10-08 3:44 ` Dale 2022-10-08 8:05 ` Michael 2022-10-08 8:18 ` Dale 2022-10-08 21:02 ` Neil Bothwick 2022-10-08 22:15 ` Dale 2022-10-08 22:20 ` Mark Knecht 2022-10-08 23:20 ` Dale 2022-10-09 7:44 ` Neil Bothwick 2022-10-08 9:10 ` Wols Lists 2022-10-08 9:24 ` Dale 2022-10-10 0:53 ` [gentoo-user] " Grant Edwards 2022-10-08 20:58 ` [gentoo-user] " Neil Bothwick 2022-10-23 6:35 ` Dale 2022-10-23 9:41 ` Frank Steinmetzger 2022-10-23 11:16 ` Dale 2022-10-23 11:57 ` Frank Steinmetzger 2022-10-24 13:49 ` [gentoo-user] " Grant Edwards 2022-10-24 22:08 ` Peter Humphrey 2022-11-22 9:59 ` [gentoo-user] " Dale 2022-11-22 10:07 ` Frank Steinmetzger 2022-11-22 12:17 ` Dale [not found] ` <7773a6e5-4b60-495f-8889-411c1a7def96@PRAP251MB0466.EURP251.PROD.OUTLOOK.COM> 2022-11-22 21:58 ` Undeliverable: " Dale 2022-11-23 0:06 ` Wols Lists 2022-11-23 4:32 ` Dale 2023-01-27 13:54 ` Peter Humphrey 2023-01-29 15:18 ` Peter Humphrey 2022-11-23 11:39 ` Frank Steinmetzger 2022-11-23 11:54 ` Dale 2022-11-23 12:00 ` Frank Steinmetzger 2022-11-23 12:16 ` Dale 2022-11-23 13:05 ` Frank Steinmetzger 2022-11-23 18:17 ` Dale 2022-11-24 14:37 ` Michael 2022-11-22 19:14 ` Wol 2022-10-08 20:32 ` Frank Steinmetzger 2022-10-09 6:58 ` Arve Barsnes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox