Announcement

Collapse
No announcement yet.

Easier way to check SFV?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Easier way to check SFV?

    Hi everyone,

    I was thinking that is there any possibility to check sfv using konqueror instead of using console (installed cksfv from repos). Tried to assign filetypes yesterday to SFV files and it almost worked, clicking sfv opened console, but it looked like it couldnt find any of the files what it should be checking...

    Any help is appreciated.

    //GnR

    #2
    Re: Easier way to check SFV?

    I believe that some of the GUI newsreaders (e.g. Pan, perhaps) check sfv's automagically when they download binaries, but I may be wrong.

    Comment


      #3
      Re: Easier way to check SFV?

      I made this today and it works for me
      I've borrowed some .desktop parts from kdigest (which sadly didn't work very well for me) and made a kde script of the gnome one found at http://www.ubuntuforums.org/showthread.php?t=63050

      you might want to use another editor than nano, just remember sudo/kdesu.

      well need to create the mimo type for sfv:
      Code:
      sudo nano /usr/share/mimelnk/text/x-sfv.desktop
      paste this content:
      Code:
      [Desktop Entry]
      Encoding=UTF-8
      Icon=txt
      Type=MimeType
      MimeType=text/x-sfv
      Patterns=*.sfv;*.SFV;
      X-KDE-IsAlso=text/plain
      Comment=Simple File Verification
      
      [Property::X-KDE-text]
      Type=bool
      Value=true
      now me define an extra menu option for the mimo type:
      Code:
      sudo nano /usr/share/apps/konqueror/servicemenus/sfv-checker.desktop
      paste this content:
      Code:
      [Desktop Entry]
      Encoding=UTF-8
      ServiceTypes=text/x-sfv
      Actions=Check
      
      [Desktop Action Check]
      Name=Check files
      Exec=kde-cksfv.sh
      and now me make a script which will run cksfv in a new konsole:
      Code:
      sudo nano /usr/bin/kde-cksfv.sh
      and paste this:
      Code:
      #!/bin/bash
      WORKDIR=$(dirname "$1")
      konsole -T cksfv --name cksfv --noclose --nomenubar \
          --notoolbar --workdir "$WORKDIR" -e cksfv -f "$1"
      now make the last file executable:
      Code:
      sudo chmod +x /usr/bin/kde-cksfv.sh
      If you've completed all steps you will have an extra menu option for sfv-files in konqueror, "Check files", which will start cksfv in a console.

      I believe that you didn't get the work directory right in your try... or something

      Comment


        #4
        Re: Easier way to check SFV?

        Belsebub,

        THANKS
        ...got so many "leftover-sfv-files" and a situation in which I need to use them
        This really comes in handy ... much better than doing it all manually

        Integration as mimo in KDE is simply a "Great idea"
        - with lot's of other applications I can think of right away

        vrun

        Comment

        Working...
        X