Announcement

Collapse
No announcement yet.

KDE file association. Which parameters can be passed to the command?

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

    KDE file association. Which parameters can be passed to the command?

    Hallo:

    I use kubuntu 8.04.

    I can associate an extension to a program, so that program will open that file when I click it.
    But the commad association accept many parameters:

    Ex: For a .html extension I see:
    firefox %u
    kate --use %U

    For .aac I see:
    noatun %i %m -caption "%c" %U
    gmplayer %F

    What this variables mean?: %u, %i, %m %c, %U, %F

    How can I know all the variables available?


    Thanks.

    Felipe

    #2
    Re: KDE file association. Which parameters can be passed to the command?

    See: http://standards.freedesktop.org/des...exec-variables
    for descriptions.

    Comment


      #3
      Re: KDE file association. Which parameters can be passed to the command?

      and / or (KDE is using the Desktop Entry Specification - freedesktop.org)

      > Chapter 26. Customizing KDE

      %f

      A single file name; used when dropping file on icon, or with file associations.
      %F

      A list of files; use for applications that can open several local files at once.
      %u

      A single URL: if the app can handle e.g. FTP or HTTP URLs itself, otherwise KDE.

      ...
      and the application will tell even more, if you ask:
      Code:
      kate --help
      Usage: kate [Qt-options] [KDE-options] [KDE-tempfile-options] [options] [URL]

      Kate - Advanced Text Editor

      Generic options:
      --help Show help about options
      --help-qt Show Qt specific options
      --help-kde Show KDE specific options
      --help-kde-tempfile Show KDE-tempfile specific options
      --help-all Show all options
      --author Show author information
      -v, --version Show version information
      --license Show license information
      -- End of options

      Options:
      -s, --start <name> Start Kate with a given session
      -u, --use Use a already running kate instance (if possible)
      -p, --pid <pid> Only try to reuse kate instance with this pid
      -e, --encoding <name> Set encoding for the file to open
      -l, --line <line> Navigate to this line
      -c, --column <column> Navigate to this column
      -i, --stdin Read the contents of stdin

      Arguments:
      URL Document to open
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: KDE file association. Which parameters can be passed to the command?

        Thank you very much.

        That's what I was looking for.

        Comment

        Working...
        X