Announcement

Collapse
No announcement yet.

How can I add my script to "send to menu" of ksnapshot ??

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

    How can I add my script to "send to menu" of ksnapshot ??

    I use KDE 4.7.3
    I wrote a bash script for ksnapshot that can upload photo to imgur.com
    but I must choose "other applications" then choose my script.
    How can I add my script to "send to" menu??

    #2
    Re: How can I add my script to "send to menu" of ksnapshot ??

    Originally posted by maxwux
    How can I add my script to "send to" menu??
    I'm just now having my first cup of coffee...so, for now, this is all I'm up to: Did you read the KSnapshot help? Specifically:

    Send to....

    This will allow to directly open the snapshot with all programs that are associated with your PNG (Portable Network Graphics) MIME type. Depending on what programs are installed, you will be able to open and edit the snapshot in your graphics applications or viewers.

    Furthermore, if you have the KIPI plugins installed you will be able to print your snapshots, e-mail them and export directly to some social networks and websites, as shown on the screenshot below.
    EDIT: Okay, the coffee kicked in enough for me to take more of a look.

    Do this:

    1) Add your script to your menu and save your changes.

    2) From System Settings choose File Associations.

    3) Expand the Image list and highlight png

    4) Over on the right select Add

    5) Navigate to the menu entry you just added and select it

    6) Move it up or down in the list as you like

    7) Save your changes

    8 ) Fire up KSnapshot and you should see your script's name in the "Send to" list.

    Note that I, obviously, cannot test your script, so whether or not it's going to WORK from the "Send to" menu as you expect it to, I can't say. But it will be there!
    Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

    Comment


      #3
      Re: How can I add my script to "send to menu" of ksnapshot ??

      There's a couple of ways to do this. You can create a new servicemenu in ~/.kde/share/apps or try this http://kde-look.org/content/show.php...content=117639




      Please Read Me

      Comment


        #4
        Re: How can I add my script to "send to menu" of ksnapshot ??

        Originally posted by DoYouKubuntu
        Originally posted by maxwux
        How can I add my script to "send to" menu??
        I'm just now having my first cup of coffee...so, for now, this is all I'm up to: Did you read the KSnapshot help? Specifically:

        Send to....

        This will allow to directly open the snapshot with all programs that are associated with your PNG (Portable Network Graphics) MIME type. Depending on what programs are installed, you will be able to open and edit the snapshot in your graphics applications or viewers.

        Furthermore, if you have the KIPI plugins installed you will be able to print your snapshots, e-mail them and export directly to some social networks and websites, as shown on the screenshot below.
        EDIT: Okay, the coffee kicked in enough for me to take more of a look.

        Do this:

        1) Add your script to your menu and save your changes.

        2) From System Settings choose File Associations.

        3) Expand the Image list and highlight png

        4) Over on the right select Add

        5) Navigate to the menu entry you just added and select it

        6) Move it up or down in the list as you like

        7) Save your changes

        8 ) Fire up KSnapshot and you should see your script's name in the "Send to" list.

        Note that I, obviously, cannot test your script, so whether or not it's going to WORK from the "Send to" menu as you expect it to, I can't say. But it will be there!
        THANK YOU VERY MUCH!!!!
        that is easy then write script.
        and my script is worked very well.
        thank you so much!!!!

        Comment


          #5
          Re: How can I add my script to "send to menu" of ksnapshot ??

          You're very welcome, maxwux. I'm glad it works well for you.
          Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

          Comment


            #6
            Re: How can I add my script to "send to menu" of ksnapshot ??

            I wrote a blog for this script
            maybe someone need this
            BUT, IT'S CHINESE :P
            http://max-linux-space.blogspot.com/...timgurcom.html

            Comment


              #7
              Re: How can I add my script to "send to menu" of ksnapshot ??

              Looks great--even though I can't read a single word of Chinese!
              Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

              Comment

              Working...
              X