How can I prevent Wine from creating shortcuts????
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
How can I prevent Wine from creating shortcuts????
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?
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?
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
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
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
How can I prevent Wine from creating shortcuts????
On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:
your script to remove them.
--
-Austin
You'd have to either edit the code to not create links, or easier, usebtw
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
your script to remove them.
--
-Austin
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
Re: How can I prevent Wine from creating shortcuts????
austin987 wrote:On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:You'd have to either edit the code to not create links, or easier, usebtw
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
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
How can I prevent Wine from creating shortcuts????
On Wed, Dec 3, 2008 at 2:58 PM, jasetaylor <[email protected]> wrote:
$ 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
No.austin987 wrote:On Wed, Dec 3, 2008 at 2:47 PM, jasetaylor <[email protected]> wrote:
You'd have to either edit the code to not create links, or easier, usebtw
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
your script to remove them.
--
-Austin
is there no easier way?
no parameter or anything for wine executable or global variable?
No, if you know their location, they're easy to remove. Or simply a: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
$ 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
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
How can I prevent Wine from creating shortcuts????
On Wed, Dec 3, 2008 at 3:16 PM, jasetaylor <[email protected]> wrote:
never for this issue.
--
-Austin
I don't know, never used it. I've looked a bit at their sources, butThanks 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)
never for this issue.
--
-Austin
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
Re: How can I prevent Wine from creating shortcuts????
Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
Re: How can I prevent Wine from creating shortcuts????
i didn't know about thisvitamin wrote:Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
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
-
- Level 1
- Posts: 8
- Joined: Wed Dec 03, 2008 2:59 pm
Re: How can I prevent Wine from creating shortcuts????
I just went ahead and tried itvitamin wrote:Just remove winemenubuilder* binary. Wine uses it to extract icons and create "links".jasetaylor wrote:What I want to know, is there any way to prevent wine from creating it's own shortcuts?
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