LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2008, 01:11 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
don't use a >8-character name if creating a KDE menu editor entry for a link


I have learned that to work properly, a link put in the launch menu with the KDE Menu Editor must not contain more than 8 characters in the directory names. I was surprised by this, but it seems true. I made a link to media:/sda1/Documents and Settings/Owner/Application Data/Mozilla/Firefox/Profiles/wau0yyya.default, my Windows partition Firefox bookmarks directory. (The command I entered was "konqueror media:/sda1/Documents and Settings/Owner/Application Data/Mozilla/Firefox/Profiles/wau0yyya.default".) Trying to run that produced a "Malformed URL" error message and caused Konqueror to crash. After a few minutes of head scratching, I truncated the names "Documents and Settings" and "Application Data" to "docume~1" and "applic~1" (the same thing MS-DOS and Windows used to do before Windows supported long filenames). The link now works properly.
Again, I was surprised that the menu wouldn't support long filenames, but I guess it doesn't.
 
Old 02-15-2008, 01:56 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Doesn't sound right to me. I'll bet the problem was the spaces, rather than the length of the entry.
 
Old 02-15-2008, 01:56 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Did you try escaping the spaces with '\' ?
 
Old 02-15-2008, 04:46 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
Doesn't sound right to me. I'll bet the problem was the spaces, rather than the length of the entry.
That makes more sense. I stand corrected.

Quote:
Originally Posted by dive View Post
Did you try escaping the spaces with '\' ?
Escaping the spaces with \? Wouldn't that confuse Konqueror by making it think the words were separate directories?
 
Old 02-15-2008, 04:51 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Directories are separated by /
\ is what you use to escape spaces and other characters in directory/file names in the shell.
 
Old 02-16-2008, 10:07 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The standard way to use spaces or otherwise illegal characters is to escape them with backslashes (eg: .../Documents\ and\ Settings/...).

Alternately, you can enclose the entire string in quotation marks to ensure that it gets recognized as a single unit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tip on putting a website link into KDE Menu Editor newbiesforever LinuxQuestions.org Member Success Stories 5 01-19-2008 03:46 PM
KDE menu editor K menu Xirtrips Linux - Software 4 10-03-2006 02:27 PM
KDE menu disappeared after using Menu editor lizard99 Linux - Software 5 09-15-2006 10:36 PM
KDE menu entry cannot be deleted! gkiagia Linux - Software 2 10-04-2005 09:57 AM
Where is the KDE "menu editor" or the actual menu located in KDE 3.1? GoSTaRnE Linux - General 3 05-23-2004 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration