LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-27-2019, 10:01 PM   #16
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,802

Rep: Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439

Quote:
Originally Posted by Firerat View Post
you may want to recheck that
are you on current?
because here on lackware64-current they do exist.
You have my sincere apology. Though OP didn't state he was referring to -Current, his version of bash is indeed indicative of -Current and I initially missed that. I run both 14.2 and -Current on their own partitions but unless stated otherwise I always assume latest full release and in this case it bit me That doesn't change the fact that a toolbox with just one tool in it has limited application and efficiency at all jobs.
 
Old 09-27-2019, 10:01 PM   #17
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 934

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
I followed this tutorial on how to create a "custom" mime type file,
and it seems that it worked.

https://www.freedesktop.org/wiki/Spe...dingMIMETutor/

Create a file '/usr/local/share/mime/packages/not-Amiga.xml'
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="text/plain">
         <comment>Text file</comment>
         <comment xml:lang="en">Text, not Amiga</comment>
         <magic priority="50">
                <match type="string" value="if" offset="0"/>
         </magic>
  </mime-type>
</mime-info>
then run 'update-mime-database -V /usr/local/share/mime/' (as root)

If there isn't any error, text files starting with 'if' now are showed
properly as text files.

This probably will override Amiga files identification, but I think they are rare?
 
Old 09-27-2019, 10:35 PM   #18
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
file /var/lib/pkgtools/scripts/bash-5.0.011-x86_64-1
Code:
/var/lib/pkgtools/scripts/bash-5.0.011-x86_64-1: ASCII text

cat /var/lib/pkgtools/scripts/bash-5.0.011-x86_64-1
Code:
if [ -r bin/bash ]; then
  mv bin/bash bin/bash.old
fi
mv bin/bash5.new bin/bash
if [ -f bin/bash.old ]; then
  rm -f bin/bash.old
fi
if [ ! -r etc/shells ]; then
  touch etc/shells
  chmod 644 etc/shells
fi
if grep -wq /bin/bash etc/shells ; then
  true
else
  echo /bin/bash >> etc/shells
fi
( cd usr/bin ; rm -rf bash )
( cd usr/bin ; ln -sf /bin/bash bash )

hexdump /var/lib/pkgtools/scripts/bash-5.0.011-x86_64-1
Code:
0000000 6669 5b20 2d20 2072 6962 2f6e 6162 6873
0000010 5d20 203b 6874 6e65 200a 6d20 2076 6962<snip>
I would be interested in what file returned for the OP

Last edited by Firerat; 09-27-2019 at 10:44 PM.
 
Old 09-27-2019, 11:43 PM   #19
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 357

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
op clarification

Yes, Current, kde5/plasma5 latest from Master Alien. Why does Dolphin consider one script Type: Amiga Soundtracker Audio and the file next to it ascii open-with-Kate?

Thanks for the suggestions to force the mime-type. I'd have to study the Dolphin code, probably a boundary condition, or a confluence of unanticipated unlikely events. Seems to confuse magic 'RIFF' with 'if'? Duckduckgo.com can't find the magic number for Amiga Sountracker Audio files. Might be a vestige of days gone bye-bye?

Used to cli from mainframe days, once compared Macintosh to Koko the Gorilla touching symbols to communicate, best tool for the job at hand was Dolphin, a quick tool to pop open a bunch of scripts into Kate looking for examples of how to write excellent scripts, quicker than 'ls' and 'less' when browsing. Why did I discover this oddity? I hosed a bunch of my custom SlackBuild packages while backing them up to a memory card, sew! wanted to reconstruct from packages and scripts rather than download sources and recreate the builds. (I add -j8 and -march=znver1 for pedantry)

-Baffled

Last edited by hpfeil; 09-27-2019 at 11:51 PM. Reason: ack
 
Old 09-27-2019, 11:58 PM   #20
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by hpfeil View Post
Yes, Current, kde5/plasma5 latest from Master Alien. Why does Dolphin consider one script Type: Amiga Soundtracker Audio and the file next to it ascii open-with-Kate?

Used to cli from mainframe days, once compared Macintosh to Koko the Gorilla touching symbols to communicate, best tool for the job at hand was Dolphin, a quick tool to pop open a bunch of scripts into Kate looking for examples of how to write excellent scripts, quicker than 'ls' and 'less' when browsing. Why did I discover this oddity? I hosed a bunch of my custom SlackBuild packages while backing them up to a memory card, sew! wanted to reconstruct from packages and scripts rather than download sources and recreate the builds. (I add -j8 and -march=znver1 for pedantry)

-Baffled

bash or sh?

do not use those scripts as example of bash scripts
they are not bash

https://mywiki.wooledge.org/BashGuide

if you are going to use bash, *use bash*

ls less ?

you really have no idea how to use the command line , bless you.


so , what does file think it is?
 
Old 09-28-2019, 12:11 AM   #21
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 357

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
These are the scripts identified as Type: Amiga...
adwaita
audacity
cdrtoosl
dash
ddd
pavucontrol

They all begin with "if [ -" or 69 66 20 5B 20 2D. I noticed that Okteta open-file dialog also has the mysterious musical note icon for the above files. Of course bash 'file' correctly sez ascii text.
Maybe it's an endian issue AIFF, RIFF, IFF? Where'd I put that Commodore....

http://www.martinreddy.net/gfx/2d/IFF.txt

Last edited by hpfeil; 09-28-2019 at 12:25 AM. Reason: aha?
 
Old 09-28-2019, 02:13 PM   #22
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,802

Rep: Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439
Hello again hpfell

Certainly it is best to discover where if any disconnect exists between how the base OpSys associates file types and how Dolphin does, but the quick and dirty way is to just use Dolphin's "Open With..." option, select what you know it should be or what you prefer, and check the box for updating the system. That app will then be at the top of the list as your preferred default.
 
Old 09-30-2019, 08:54 AM   #23
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,604

Rep: Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103
Firerat,

LQ is a welcoming place where personal attacks, flame wars, and ad hominem are not acceptable. You have been warned before. Your posting privileges have been suspended for one week, and future behavior of this nature will not be tolerated. If you have any questions, feel free to contact me.

--jeremy
 
4 members found this post helpful.
Old 09-30-2019, 04:02 PM   #24
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I am sorry Jeremy I am writing this but allow us please a little of freedom. If not this place soon will be kingdom of boredom. We all are making mistakes. Please allow us forum members to act, judge, express a little of our own personality. We are not machines. I don't support your decisions to suspend Firerat. In my opinion you overreacted.
 
Old 09-30-2019, 04:21 PM   #25
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by igadoter View Post
We all are making mistakes. Please allow us forum members to act, judge, express a little of our own personality.
I'm not judging jeremy's wise decision to give that person a short break to rethink his/her attitude, but would like to highlight two occasions, that you could have missed, in which that person deliberately offended the whole Slackware community:
https://www.linuxquestions.org/quest...8/#post6041783
https://www.linuxquestions.org/quest...3/#post6041692

You are right, we all make mistakes (me included, in my rather short presence here on LQ) and we all have the power and decency to accept and analyze the (repeated) critique and warnings, apologize and start behaving accordingly.
 
Old 09-30-2019, 04:30 PM   #26
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,604

Rep: Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103Reputation: 4103
Please get this thread back on track immediately. If you'd like to discuss something related to LQ, and not this thread, feel free to contact me directly or open a thread in the LQS&F forum.

--jeremy
 
Old 09-30-2019, 04:34 PM   #27
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
These post I take as expression of sense of humor. One can say many things about Slackware users but not that they need to educate themselves. Actually common Slackware user can teach others. Using Slackware for some years I learned a lot - which I am grateful to - of course - Slackware creator and maintainer - for this opportunity. I can't imagine someone could take Firerat's comments seriously. Besides maybe I am mistaken but there is no more Debian Sid - I acknowledge this somewhere. So I asked myself question: what distribution Firerat is using now? I can imagine Firerat can be little disappointed what Debian became. Taking into account his hard attitude to work within shell mainly.

Last edited by igadoter; 09-30-2019 at 04:35 PM.
 
Old 10-01-2019, 04:41 PM   #28
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,802

Rep: Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439
For what it's worth, I don't think Firerat should have been punished instead of just warned for this thread but I don't know if he was warned before or other threads I've no see are involved. So I have to trust jeremy on this as I am of the opinion he is an enlightened adult with a strong sense of freedom and fair play.

As for this thread I think Firerat calmed down just fine after a little coaxing. Just in case anyone is wondering, not only did I NOT report him, I NEVER report anyone and WILL never report anyone. Sticks and stones, you know? I figure intelligent people will work things out. Firerat did offer some helpful info. He was just a bit abrasive about it but he did come around. That should count for something.

There is a decent thread in General about Political Correctness and how awful it is and I fully agree. Actual Adults may possibly require some supervision on a forum but only rarely. I think people who haven't learned how to deal with verbal conflict need to learn such skills and for many forums are their major form of social contact in which to do so.

Within this thread between all of the posters, including Firerat, I think OP got good info and has a number of options to deal with his difficulties with Dolphin file type recognition.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[KDE/Dolphin] Issues with Dolphin and io-slave. WisdomFire Manjaro 3 08-28-2020 05:30 PM
I think this falls under MIME types but default types BW-userx Linux - General 0 01-03-2016 12:49 AM
[SOLVED] Conflicting type declarations between sys/types.h and linux/types.h Da Shi Cao Programming 3 09-13-2010 11:55 PM
sys/types.h & linux/types.h conflict while compiling johnnyhal Linux - Software 1 12-28-2008 06:39 PM
conflicting redeclaration of sys/types.h and linux/types.h schmil Programming 6 12-11-2008 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration