[arch-general] How do I preserve changes to okular.desktop?
Hi, every time I upgrade okular chrome starts opening two instances. One has a dialong saying it couldn't find '%I' and the other has the document I want. All I have to do to fix it is to remove %I from the .desktop file. How do I preserve this change across upgrades? Alternatively, how do I get the '%I' to be expanded properly? Sorry if this is asked a lot. My search-fu was not up to the task.
On 04/19/2014 10:07 PM, Chris Moline wrote:
Hi, every time I upgrade okular chrome starts opening two instances. One has a dialong saying it couldn't find '%I' and the other has the document I want. All I have to do to fix it is to remove %I from the .desktop file. How do I preserve this change across upgrades? Alternatively, how do I get the '%I' to be expanded properly?
Sorry if this is asked a lot. My search-fu was not up to the task.
Have you tried putting it in ~/.local/share/applications ? -- Note: My last name is not Krejzi.
On 20/04/14 06:07, Chris Moline wrote:
Hi, every time I upgrade okular chrome starts opening two instances. One has a dialong saying it couldn't find '%I' and the other has the document I want. All I have to do to fix it is to remove %I from the .desktop file. How do I preserve this change across upgrades? Alternatively, how do I get the '%I' to be expanded properly?
Sorry if this is asked a lot. My search-fu was not up to the task.
Create the new desktop file in ~/.local/share/applications/okular.desktop I believe that will override it for your user: it works for me. Alternatively, add the location of the original desktop file to pacman.conf NoUpgrade and pacman won't update it.
On Tue, 2014-04-22 at 22:42 +1000, Robbie Smith wrote:
Alternatively, add the location of the original desktop file to pacman.conf NoUpgrade and pacman won't update it.
IIUC without the first "/" of the path [1]. JFTR the package itself, including an unwanted file, but containing other files too, still will be upgraded, just the unwanted file won't be upgraded? I for example haven't GNOME installed, but from time to time I get [rocketmouse@archlinux ~]$ ls /usr/share/xsessions/gnome* /usr/share/xsessions/gnome.desktop /usr/share/xsessions/gnome-fallback.desktop /usr/share/xsessions/gnome.desktop.disabled /usr/share/xsessions/gnome-fallback.desktop.disabled to remove or "disable" them all the times is annoying. So I have to add usr/share/xsessions/gnome.desktop usr/share/xsessions/gnome-fallback.desktop to NoUpgrade, without a "/" at the beginning [1]? [1] "NoUpgrade = file … All files listed with a NoUpgrade directive will never be touched during a package install/upgrade, and the new files will be installed with a .pacnew extension. These files refer to files in the package archive, so do not include the leading slash (the RootDir) when specifying them. Shell-style glob patterns are allowed." - https://www.archlinux.org/pacman/pacman.conf.5.html
participants (4)
-
Armin K.
-
Chris Moline
-
Ralf Mardorf
-
Robbie Smith