Find the answer to your Linux question:
Results 1 to 2 of 2
i tried every wildcards that i knew, but all of it failed... i want to get the filename of a certain file that i clicked on the desktop, how can ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2

    Smile returning the "filename" of the file that i clicked

    i tried every wildcards that i knew, but all of it failed...

    i want to get the filename of a certain file that i clicked on the desktop, how can i do this...

    for example:
    i clicked the "test.ppt" on my desktop, i want to get the filename so that i canopen the file using a shell script:

    wine "C:\Program Files\Microsoft Office\Office\powerpnt.exe" /s "(the file that i clicked)"


    comments and helps are greatly appreciated.. thank you!

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Many file managers have a built-in scripting facility. Check your file manager documentation and it should tell you how to specify the currently selected file. For example, in Nautilus (the Gnome file manager) you treat the file as an argument to your bash script so you represent it as $1.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...