5 Replies - 1554 Views - Last Post: 26 August 2012 - 01:44 PM

#1 leontd  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 06-January 12

Microsoft Office on Wine - .lnk files

Posted 10 March 2012 - 09:41 PM

I need help figuring out how to stop wine from creating .lnk files for each time a Microsoft Office application is open and close. Any help would be very appreciated,Thank you!
Is This A Good Question/Topic? 0
  • +

Replies To: Microsoft Office on Wine - .lnk files

#2 denting5  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 84
  • Joined: 03-June 12

Re: Microsoft Office on Wine - .lnk files

Posted 25 June 2012 - 06:43 AM

Shell links are a rather integral lower level part of Windows, so I am sorry to say that you cannot do much about your problem short of re-writing Windows. If you are finding running Microsoft Office within an emulator too bothersome, might I suggest running Open Office natively, instead?
Was This Post Helpful? 0
  • +
  • -

#3 illys  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 17-August 12

Re: Microsoft Office on Wine - .lnk files

Posted 17 August 2012 - 12:08 AM

Hi,

I have the same issue and a workaround.
This is not a solution but a periodic cleanup.

Try:
- open bash
- type the following command line: crontab -e
Was This Post Helpful? 0
  • +
  • -

#4 illys  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 17-August 12

Re: Microsoft Office on Wine - .lnk files

Posted 17 August 2012 - 12:17 AM

Sorry for the broken entry: [tab] moved to the post button instead of writting a tab :-/

So:


I have the same issue and a workaround.
This is not a solution but a periodic cleanup.

Try:
- open bash
- type the following command line: crontab -e
=> the crontab editor open
- Add the following 2 lines:
*/5 * * * * cd ~; rm *.lnk
0 * * * * find ~ -iname *.lnk -type f | grep -v .wine | tr '\n' '\0' | xargs -0 rm
- Save
- Wait for the next multiple of 5 minutes (09.05, 09.10...)
=> the .lnk files will disappear from your current user folder
- Wait for the next multiple of 1 hour (10.00, 11.00...)
=> the .lnk files will disappear from all the subfolders of your current user

Explanation of the second line:
- find ~ -iname *.lnk -type f => find all files ending with .lnk
- grep -v .wine => ignore those in with .wine in the path
- tr '\n' '\0' => change all new lines into [0] char
- xargs -0 rm => use 0 as a separator for rm (instead of the space which exists inside paths)


Not a clean solution, but a clean user folder.

Regards
Was This Post Helpful? 0
  • +
  • -

#5 fatalpriapism  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 39
  • Joined: 17-August 12

Re: Microsoft Office on Wine - .lnk files

Posted 21 August 2012 - 01:18 PM

Might I ask why you aren't using OpenOffice? :)
Was This Post Helpful? 0
  • +
  • -

#6 illys  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 17-August 12

Re: Microsoft Office on Wine - .lnk files

Posted 26 August 2012 - 01:44 PM

View Postfatalpriapism, on 21 August 2012 - 01:18 PM, said:

Might I ask why you aren't using OpenOffice? :)


Because I love Linux and I do not hate Microsoft.
Because MS-Office is a good product (or at least it fits my needs).
Because I find OpenOffice/LibreOffice too bloated (and based on a JVM while it is a disaster choice for performances).
Because I find OpenOffice/LibreOffice unfit for the documents my contacts work with (ok it may be MS fault and choice).

And in short because Linux allows me to be free and I make use of this freedom to use whatever software I appreciate - and it includes some Windows world pieces of software.

Thank you Linux and Wine people!

With regards :-)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1