Ignoring /usr/share/applications
Hey all
I'm looking for a way to ignore the .desktop files in /usr/share/applications
I've created my own .desktop files and stored them in /usr/local/share/applications. The inconsistencies and sheer amount of .desktop files that applications bring with them by default were cluttering my menus. However, it's strating to become a pain to keep /usr/share/applications empty, since everytime a package gets a small update it puts its .desktop files back there.
Is there a way to ignore the .desktop files in /usr/share/applications? Perhaps through some sort of environment variable? Thanks
robrene wrote:
It's not just the menus that I want this for, the .desktop files also reflect what applications can open certain mimetypes and they determine what appears in "Open with..." dialogs for example.
Perhaps making sure all .desktop files have an entry that reads "Hidden=true" would indeed be a good solution to my problem though, since pacman will still be able to track the files and I could have a script that asserts this everytime I run it. However my scripting skills for these kind of text manipulation tasks are subpar... Could someone please help me write a script that:
For each *.desktop file in /usr/share/applications:
Searches for the "Hidden" key
If found, makes sure it's set to "true"
If not, append the Hidden=true entry
I'd really appreciate the help
Only lightly tested, seems to work.
#!/bin/bash
shopt -s nullglob
for f in /usr/share/applications/*.desktop; do
awk 'BEGIN {hidden=1} /^Hidden=/ {print "Hidden=true"; hidden=0; next} {print} END {if(hidden) print "Hidden=true"}' "$f" > "/tmp/${f##*/}.new"
mv "/tmp/${f##*/}.new" "$f"
done
Last edited by Profjim (2010-01-31 19:27:46)
Similar Messages
-
Dear Experts,
Please note that I am facing a chllenge while confiuguring the VNCServer on the local test Server. The Local Test Sver OS Version is Redhat Enterprise Linux Server
Release 5.5 32-bit. Please review the following error message and advise me on how to fix the vncserver issue.
[root@test .vnc]# cat xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
gnome-session &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
[root@test .vnc]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
VNCSERVERS="1:oracle"
[root@test .vnc]# ls
passwd test.oracle.co.zm:1.pid test.oracle.co.zm:3.log test.oracle.co.zm:5.pid test.oracle.co.zm:6.pid
test.oracle.co.zm:1.log test.oracle.co.zm:2.log test.oracle.co.zm:5.log test.oracle.co.zm:6.log xstartup
[root@test .vnc]# more test.oracle.co.zm:1.log
Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70101000, The X.Org Foundation
Tue Mar 11 11:18:37 2014
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
Could not init font path element unix/:7100, removing from list!
localuser:root being added to access control list
No profile for user 'root' found
SESSION_MANAGER=local/test.oracle.co.zm:/tmp/.ICE-unix/13603
Window manager warning: Log level 32: could not find XKB extension.
** (eggcups:13671): WARNING **: IPP request failed with status 1030
** (eggcups:13671): WARNING **: IPP request failed with status 1030
** (nm-applet:13697): WARNING **: No connections defined
Initializing nautilus-open-terminal extension
Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-writer.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-impress.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-calc.desktop for panel launcher: No such file or directory
[root@test .vnc]#
Regards
Mohammed Abdul MuqeetHi,
Try these 3 solutions
1. Did you start vncserver services as:
service vncserver start
2.Check that port 5901 has not been blocked by a firewall:
# nc -vz localhost 5901
You should get a connection and a termination. If you get an error, fix the firewall.
3. service iptables stop
Hope This Helps
Regards,
-DK -
Xdg-open didn't read ~/.local/share/applications/default.list
xdg-open doesn't read ~/.local/share/applications/default.list, and the only way to associate application and filetype is do following command:
xdg-mime default thur.desktop inode/directory
But, the content of default.list will be rewrite.
xdg-open ignore everything I have added to default.list manually.
It looks like xdg-open have something like database to track association I added through command, then dump it to default.list after I execute the command.
Does anyone have idea what wrong happened? tell me please
Last edited by lanyitin800830 (2012-05-10 18:16:10)Update: This works (line 402 in /usr/bin/xdg-open):
---( From )---
$command_exec "$1"
---( To )---
eval `"$command_exec" "$1"`
At least for me, I get the expected behavior for pdfs (evince opens the file, nothing else) with this change. Is this a bug? -
Acroread 9.1.0 reads the full directory tree /usr/share/fonts
Hi,
I was wondering why the startup time of acroread is that high on my system (Debian 5.0). I have found out using strace that acroread reads the full content of the /usr/share/fonts/ directory tree (more than 4000 files) during startup in a quite inefficient way.
First question: why does it read /usr/share/fonts during startup at all and is there a way to disable that behaviour?
Second question follows: the ext3 requires that an application reading the full content of a directory should sort the file list numerically by inode number before opening the files. It is explained in http://bugzilla.kernel.org/show_bug.cgi?id=417 why the application should be fixed and not the kernel. Can acroread be changed to qsort() the file list between the calls of readdir() and open()?
Cheers,
TorstenHello Torsten,
Thanks for reporting the issue. Could you please let us know if you are opening acroread with a file(either by double clicking on it or giving it as a parameter to acroread). If yes, could you please see if launch time is still high when you do not open a file(launch acroread by clicking on the Desktop icon or launch it from console). Also, it would be helpful if you can mail the strace output to sanika at adobe dot com.
As for reading the location, it is one of the standard font locations mentioned in /etc/fonts/fonts.conf. If you do not want acroread to use these fonts, you can set ACRO_DISABLE_FONT_CONFIG to 1 on console.
If you do not want to set this variable every time you launch reader, you can search for "ACRO_DISABLE_FONT_CONFIG" in the launch script, uncomment the relevant section and save the script.
However, I should warn you that Reader would not be able to use these fonts to display PDFs(substitute fonts would be used instead).
Sincerely,
Sanika -
Collaboration : Share Application not working
Hi,
I have configured for Collaboration. After click on Collaboration, select the userA now from context menu, select the "Share Application". Now the pop-up comes having the tab as "<b>Select an application to share</b>" with the <b>Cross Sign</b> and having the message "<b>Application sharing control: If you do not see a list of all running programs, contact your system administrator.</b>"
Can someone help me on this, how I can resove it.
Regards,
DeepHi Deep,
Check whether you have the supported version of the browser and also the browser settings.
Regards,
Venkat. -
How many iPhones can I share applications with?
General Question,
Can I share applications (games) with multiple iPhones?
Also - I purchased some games and synced them to my iPhone. Now I want to give this phone to someone else and buy a new one. What happens now to the games? Are the games somehow locked to the original iPhone?
Do I just sync my new phone as before and will all the games conitnue to work? This will mean that there will now be 2 iPhones with the same games on there.
-FrankieYou can share as many as you want. DPS SE will be included with CC “at a future date.”
Bob -
Want to share application data between Mac's on home network.
Hello,
We currently have one iMac at home and I would like to start using separate logins for different family members, but I want to be able to share applications (Mail, Address Book, ICal, iPhoto, etc.) across accounts. Can it be done? I would hate to have to set up all the email account information again or have duplicate copies of the large iPhoto library. Or two separate versions of address book and iCal.
This issue is also the #1 reason why I hesitate to purchase another iMac or MacBook for our house. I want to be able to be sitting downstairs on the MacBook and access the, for example iCal and not have to run 2 different versions and worry about synching them.
Any input is appreciated.
Thanks,
Brad.Hi Brad, OSX is setup to keep all this account info seperate, but on iPhoto for example, you can...
Move iPhoto libray...
http://support.apple.com/kb/HT1229
Might also see Old Toad's posts here...
http://discussions.apple.com/thread.jspa?threadID=1627454&tstart=150
And Old Toad's Cellar here...
http://web.mac.com/toad.hall/ToadsCellar/ToadsCellar.html -
Glibc - /usr/share/info/dir is already in the filesystem
Hello,
I just build glibc from abs with debugging support and when trying to install it via pacman I get conflicting files error: "/usr/share/info/dir is already in the filesystem". Any ideas?/usr/share/info/dir makes part of the info documentation system. Packages must add entries to this file and not overwrite it, so your package need to be fixed. You can delete the dir file from the package (do not overwrite the system file or you will destroy the info system); you just won't have a title entry in the info page (the menu displayed when you type info will not have the entry corresponding to your package). You can also fix it properly with the install-info command (but I do not know this package, so I do not know exactly what you have to install).
I suggest you to report the problem it in a comment in the AUR.
Last edited by olive (2013-01-29 07:10:50) -
I have connection problems between the mini ipad and my powerbook g4, you are not allowed to see or share applications.
That is not possible.
-
"Permissions differ on usr/share/derby"
Hi,
After some strange behavior on my MacPro I verified disk permissions and got:
Permissions differ on "usr/share/derby" should be drwxr-xr-x, they are lrwxr-xr-x
and
Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
Repair disk permissions does not fix the problem.
Any advice aside from reinstalling Snow Leopard?
Thank you.The “l” in lrwxr-xr-x stands for “link” and just means that the corresponding file is an alias file, whereas “d” in drwxr-xr-x stands for “directory” and means it's a folder. In Mac OS X 10.6.3, the /usr/share/derby file is an alias to the /usr/share/java/derby-10.5.1.1 folder, however both actually have the same read/write permissions (rwxr-xr-x).
Message was edited by: Pierre L. -
Corrupted library points to /usr/share/emacs/...
Advice on fixing a corrupted iTunes Library would be appreciated. The symptoms are invalid links to certain files, such as:
file: "TED Sirena Huang"
link: iBook/usr/share/emacs/21.2/lisp/net/webjump.el
file: AC: Ray Kurzweil
link: iBook/usr/share/emacs/21.2/lisp/obsolete/auto-show.el
BTW, the URL of an Applescript that will find [or make a playlist of] all missing or invalid files would be appreciated. It is surely on dougscripts.com but I've not yet devisted the proper query.Has anyone seen this type of library corruption before? It is a bit scary to have iTunes linking into System files - where only permissions prevents a user from accidental deletions.
-
How do I install the documentation in /usr/share/docs
My question is: How do I install the BDB documentation in /usr/share/docs (rather than in PREFIX/docs)?
I tried to configure with --datadir=/usr/share, but the installer still tries to put the documentation in PREFIX/docs.
Regards,
Angel TsankovMaybe in dist/Makefile.in the line 'docdir=\t$(prefix)/docs' should be changed to docdir=\t@docdir@'.
-
In trying to upgrate libreoffice today, I get a bunch of errors about files in /usr/share/icons already existing. I checked a bunch and they weren't owned, so I started removing them using `updatedb` followed by `locate libreoffice` to track down those various icon folders and remove them. Unfortunately, the upgrade still fails with complaints about files already existing in /usr/share/icons/locolor/16x16 and ../32x32.
The problem is that /usr/share/icons/locolor is completely empty. `sudo ls -la /usr/share/icons/locolor` returns nothing, and `locate libreoffice` doesn't get any hits at that location.
Is there somewhere else pacman stores a cache or tmp file of what it thinks exists in the filesystem? I already did `pacman -Rsc libreoffice-common` and `pacman -Scc` to remove cached packages. No I'm simply trying to install fresh and I get the same errors.
This is on a computer that I haven't used in quite some time... could a skip of some intermediate version of libreoffice have caused some issues in the various icon locations or package contents? I'm stumped as to why it would think something exists that doesn't
Any suggestions?@Roken: re-read my post to see what the problem is. I have deleted any instances of libreoffice-* inside /usr/share/icons.
The problem is that pacman is complaining about /usr/share/icons/locolor/.../libreoffice-* files that do not exist. /usr/share/icons/locolor empty and yet pacman thinks there's files in it!
Per the rest of your comment, appreciated. I practice the same -- for libreoffice, I figure without it installed, I can delete anything to do with libreoffice (I had no custom setups, templates, etc.). I wouldn't dream of it with various libraries, as you mention, without checking the Arch website of forums first.
So... how to figure out why pacman is seeing "ghost files"? -
Hi all,
with the recent vim upgrade I have notified a couple of package maintainers that they would have to move some vim support files that are in their packages (e.g. syntax highlighting) out of /usr/share/vim/syntax and similar into subdirectories. However, I'm afraid I might have suggested something wrong there: My suggestion was that they be put in /usr/share/vim/vimfiles/syntax and so on, but Pierre has already updated his cmake package (bugreport) and moved it into /usr/share/vim/vim72/syntax etc.
Since I've also seen similar discussions at least in the latexsuite package (now removed since the packages have been renamed), and so I wonder what is the difference resp. the Archlinux policy with regard to those two directories: /usr/share/vim/vim72 vs. /usr/share/vim/vimfiles. (Personally, I thought that the vim72 subdirectory is for the distribution of vim itself, whereas distribution-specific stuff would go to the vimfiles subdirectory. - That's where the latex-suite package's files are now, too.)
Anyone with more sound reasoning or an insight into some quasi-"official" view on the question?
TIA,
AndreasActually the bug report asked to move from /usr/share/vim to /usr/share/vim/vimfiles
So I am confused..
Edit : ok I see now : http://repos.archlinux.org/viewvc.cgi/c … 3&r2=52345
Pierre moved from /usr/share/vim to /usr/share/vim/vim72 instead.
Last edited by shining (2009-10-08 11:13:01) -
Need of Share Applications tier
Dear Expat,
we are implemting Oracle Apps R12, this is our infrastructure.
Production
1 node for Oracle DB 11g
1 node for Applications (Forms , reports , CM etc)
1 node for Web Server (for external users/vendor on Public IP)
All are connected with SAN drive, redhat linux 5.3.
Kindly advise, can I configur the share application tier for both Apps and Web Server. Then my patching and other maintanince will be low;
I have to assinge the Public IP for the external user on web server.
What will be the best way to achive all????
Is the O/S also be clusterd?
This just to achive make less maintenance (one application node instead because the appltop is shared)
Kindly correct where I am wrong...
Regards
SRHi,
What will be the best way to achive all????See these links.
Choosing a Shared File System for Oracle E-Business Suite
http://blogs.oracle.com/stevenChan/2009/07/choosing_an_ebs_shared_file_system.html
Reducing Patching Downtimes via Shared Apps File Systems
http://blogs.oracle.com/stevenChan/2007/05/reducing_patching_downtimes_vi.html
Is It Safe to Use SANs for EBS R12 Instance Tops?
http://blogs.oracle.com/stevenChan/2009/08/local_disk_vs_san_for_inst_tops.html
Is the O/S also be clusterd?Not necessarily, but this can be additionally implemented.
Regards,
Hussein
Maybe you are looking for
-
I am running Firefox 4.0 beta 7 on Windows XP Tablet Edition OS. When I enter this site using Firefox, the browser stops responding and I have to end the process using Task Manager. However, when I open it with other browsers such as IE8, I am able t
-
ITunes stopped syncing movies on my iPod Touch
This one is driving me crazy today. iPod Touch - latest generation. iOS 8.1. iMac 27 - Yosemite 10.10. All updates current. iTunes 12.0.1.26 For a few years now, I've had home videos of my granddaughter on my iPod Touch. About a dozen of them. Today
-
Hi I am trying to migrate a HPS application. But while exporting it i am getting the below eroors in LCM log file. Application artifact listing metadata contains duplicate resource information for /Objects/Application Model. Empty Zip input stream. D
-
Materials & Services PO linkage
Hi , Due to taxation reasons & legal conditions, we are not able to create materials & service PO together, Pl. advice is there any alternative through which we can monitor the materials & service PO created together. Regards
-
Ever since I upgraded to Safari 3.0.4 (523.12) last night, my fonts have been going crazy using Cyrillic (Helvetica Cyrillic A Inclined to be specific) instead of regular italicised versions of the correct font. Have a look: http://www.wyldstallyons.