6 Replies - 1993 Views - Last Post: 21 June 2014 - 09:17 AM

#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
  • +
  • -

#7 ngagun  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-June 14

Re: Microsoft Office on Wine - .lnk files

Posted 21 June 2014 - 09:17 AM

In case anyone still cares about this, I figured out what causes this problem. It is the lack of a "Recent" folder in your Documents folder in wine's virtual C drive. I guess MS Office tries to create shortcuts to recently used files there, and when it finds the folder missing, it dumps them in your home directory or other random locations.

So anyway, the fix is simply to create a "Recent" folder. For me, the location is here:

/home/myusername/.wine/drive_c/users/myusername/Recent

By the way, illys I like your post about why you use Microsoft and Linux. I'm the same. For me, Word 2000 is the best word processor ever. I don't like the newer versions, or LibreOffice Writer, or AbiWord, or anything else. So I run Word 2000 in wine and it's just perfect.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1