How can I prevent Wine from creating shortcuts????

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

How can I prevent Wine from creating shortcuts????

Post by jasetaylor »

Hey, I'm new to the forums but by no means a noob

but it's come to the point lately where I'm creating scripts (bash mixed with autoit) where I create a new bottle, silently install the program and then do any fixes etc in the script making it all completely automated (as i tend to re-install my system a lot)

The issue I'm having though is the shortcuts wine creates

Desktop shortcuts i can simply do an rm -f $HOME/Desktop/app.desktop

but the menu options are becoming annoying

ALL installed apps get menu's created in the wine section (im using Gnome with ubuntu 8.10 intrepid) but I wish to create my own shortcuts so i can have ,for example, photoshop CS2 in the graphics menu

Now i know how to create the shortcuts etc

What I want to know, is there any way to prevent wine from creating it's own shortcuts?
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Post by jasetaylor »

btw

please don't direct me to this

http://wiki.winehq.org/FAQ#head-9893ae5 ... af2e69b391

it is not what I'm after

Also, reason i need my own shortcuts aswell is that as you know, some apps need special parameters to run

ie spore runs well with the safe mode flag enabled, half life with the dxlevel8 flag etc
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How can I prevent Wine from creating shortcuts????

Post by austin987 »

On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:
btw

please don't direct me to this

http://wiki.winehq.org/FAQ#head-9893ae5 ... af2e69b391

it is not what I'm after

Also, reason i need my own shortcuts aswell is that as you know, some apps need special parameters to run

ie spore runs well with the safe mode flag enabled, half life with the dxlevel8 flag etc





You'd have to either edit the code to not create links, or easier, use
your script to remove them.

--
-Austin
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Re: How can I prevent Wine from creating shortcuts????

Post by jasetaylor »

austin987 wrote:On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:
btw

please don't direct me to this

http://wiki.winehq.org/FAQ#head-9893ae5 ... af2e69b391

it is not what I'm after

Also, reason i need my own shortcuts aswell is that as you know, some apps need special parameters to run

ie spore runs well with the safe mode flag enabled, half life with the dxlevel8 flag etc





You'd have to either edit the code to not create links, or easier, use
your script to remove them.

--
-Austin

is there no easier way?
no parameter or anything for wine executable or global variable?

It's just that if i must use the script to remove them, then i have to install the program manually anyways, find all the associated icons, and .desktop files to delete them

and seeing as i have other .desktop links on my desktop and other apps in the main .wine bottle, i can't just do a generic wildcard with rm, this is not something i'd like to do
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How can I prevent Wine from creating shortcuts????

Post by austin987 »

On Wed, Dec 3, 2008 at 2:58 PM, jasetaylor <[email protected]> wrote:
austin987 wrote:
On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:
btw

please don't direct me to this

http://wiki.winehq.org/FAQ#head-9893ae5 ... af2e69b391

it is not what I'm after

Also, reason i need my own shortcuts aswell is that as you know, some apps need special parameters to run

ie spore runs well with the safe mode flag enabled, half life with the dxlevel8 flag etc






You'd have to either edit the code to not create links, or easier, use
your script to remove them.

--
-Austin

is there no easier way?
no parameter or anything for wine executable or global variable?
No.
It's just that if i must use the script to remove them, then i have to install the program manually anyways, find all the associated icons, and .desktop files to delete them

and seeing as i have other .desktop links on my desktop and other apps in the main .wine bottle, this is not something i'd like to do
No, if you know their location, they're easy to remove. Or simply a:
$ rm -f $HOME/.config/menus/applications-merged/wine*
$ rm -rf $HOME/.local/share/applications/wine

Should get rid of them. Or if you've got some you want to keep, find
that shortcut and remove it only. You're reinstalling the same apps
repeatedly, so you should know where the shortcuts are.

--
-Austin
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Post by jasetaylor »

Thanks for the help anyways Austin

Looks like removing them via the script is to be the only option

How does crossover and cedega do it though?

have they edited the source? (not fond of compiling source code if the deb's are already there)
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How can I prevent Wine from creating shortcuts????

Post by austin987 »

On Wed, Dec 3, 2008 at 3:16 PM, jasetaylor <[email protected]> wrote:
Thanks for the help anyways Austin

Looks like removing them via the script is to be the only option

How does crossover and cedega do it though?

have they edited the source? (not fond of compiling source code if the deb's are already there)





I don't know, never used it. I've looked a bit at their sources, but
never for this issue.

--
-Austin
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Post by jasetaylor »

Unfortunately, im only a web applications programmer (mainly PHP) so my skill in reading code ends there


Unless someone else knows anything on this, ill keep it to deleting manually in the scripts

Thanks for your help
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How can I prevent Wine from creating shortcuts????

Post by vitamin »

jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Re: How can I prevent Wine from creating shortcuts????

Post by jasetaylor »

vitamin wrote:
jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".
i didn't know about this

will wine still function normally on installs without it?

any known errors with removing/renaming it?

i mention renaming because I'd probably prefer to do that to disable it's use but still have ability to use it afterwards
jasetaylor
Level 1
Level 1
Posts: 8
Joined: Wed Dec 03, 2008 2:59 pm

Re: How can I prevent Wine from creating shortcuts????

Post by jasetaylor »

vitamin wrote:
jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".
I just went ahead and tried it

simply renaming it doesn't affect anything

however, deleting it does

so i guess my solution is to move the file outside of the usr/lib directory completely untill install is complete

tested this with notepad++, notepad2, premiumsoft's navicat and autoit

seems like this is the best method so far

I'm still not sure how crossover does it because their winemenubuilder.exe.so library is still intact

For now, im using 2 functions in my scripts

disable_wine_icons() and enable_wine_icons()

so if anyone has any better ideas, i can easily manipulate the script

Thanks again
Locked