LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-25-2020, 12:40 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Xubuntu desktop icons inconsistent between users


i have desktop icons run firefox go to different web sites, such as one to go here. the name shows up with 2 lines on the icon. i was setting icons up on 2 other users and copied the Linux Questions desktop file to the other users to use as a starting point. i made the names of the new icons have 2 lines, too. but the 2nd line just doesn't show up. something's different. can anyone tell me what that might be and how to fix it on the 2 new users? below is a copy of the .desktop file. i am running Xubuntu 18.04 with Xfce 4.12.2.

Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=Linux\nQuestion
Comment=linuxquestions.org
Exec=inws 8 /usr/lib/firefox/firefox -p linux_q -no-remote https://linuxquestions.org/
Icon=firefox
Terminal=false
StartupNotify=false
 
Old 05-26-2020, 05:24 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
If the icon specified is not an absolute path then the icon lookup algorithm is applied on the icon name.
 
Old 05-26-2020, 02:17 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Skaperen View Post
Code:
Name=Linux\nQuestion
You mean this part?
I don't think this can work at all.
 
Old 05-26-2020, 03:30 PM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
@ondoho. From the Desktop Entry Specification:
Quote:
The escape sequences \s, \n, \t, \r, and \\ are supported for values of type string, localestring and iconstring, meaning ASCII space, newline, tab, carriage return, and backslash, respectively.
 
Old 05-26-2020, 09:13 PM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by shruggy View Post
If the icon specified is not an absolute path then the icon lookup algorithm is applied on the icon name.
it works in the userid i am in to read the various forums i am active on. each forum has a desktop icon that starts firefox with the -P option specifying a different profile for each forum so i can have a firefox separate process open for each of them at the same time.

i'm trying to set up the same thing in 2 other userids i do cloud computing on so i can have similar firefox concurrency with separate processes. they are set up and working. but the names under their icons only show a single line. and that line cuts off at the \n in the Name string.

i don't understand how lookups and themes apply to this. i have not set a theme in any of these 3 userids.
 
Old 05-26-2020, 09:23 PM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by ondoho View Post
I don't think this can work at all.
it does work ... in the userid named "forums". but it does not work in the userid named "aws". it is apparently detecting the \n because i have an .desktop file with "Name=phil\nfoo" and it shows just "phil".
 
Old 05-27-2020, 02:59 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by Skaperen View Post
i don't understand how lookups and themes apply to this.
Sorry, I misunderstood you because of
Quote:
Originally Posted by Skaperen View Post
i made the names of the new icons have 2 lines, too.
I understood this so as for you to have created two new .desktop files with changed Icon= keys. Something like Icon=My\nfirefox instead of Icon=firefox. I myself never refer to .desktop files as icons.

Last edited by shruggy; 05-27-2020 at 03:01 AM.
 
Old 05-27-2020, 07:01 PM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
an icon shows up for each valid .desktop file i create in directory "~/Desktop". that understanding leads me to refer to one or the other. sorry for the confusion.

while i have a few decades or systems and programming experience (starting from mainframes in 1972), i have very little GUI configuration/setup experience. i have used GUI environments for many years, but i am pushing the boundaries now that machine speed is enough to use graphical mode (X) with an X terminal instead of text mode.

now that i "operate" in a GUI environment, i desired to "manage" my experience in more detail. for example, i've set up keyboard shortcuts (hotkeys) to jump directly between users that are concurrently logged in (via dm-tool). likewise, other shortcuts jump between virtual desktops. i have 10 virtual desktops per user and 18 logged in users making for 180 desktops, 87 of which are running a nearly full screen xfce4-terminal. i hope to do some GUI programming, soon, too (most likely in Python version 3).
 
Old 05-28-2020, 02:41 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by shruggy View Post
@ondoho. From the Desktop Entry Specification:
And nowhere does it say that this specifically applies to the Name= field.
I don't have a desktop, but I have .desktop files and when I add a "\n" in the Name= field, the text after the "\n" is not displayed anymore.
Makes sense to me, because that name is supposed to be a string without formatting, so that the file or desktop manager can format it as it sees fit.

shruggy, I appreciate your helpfulness and willingness to look things up for OP, I even appreciate you correcting others, but please make sure that a) you really understood what they meant before correcting them and b) your correction is actually correct. Thank you.

PS: re confusion about icons: maybe OP uses the term "Icon" in the sense that it includes both text & graphics?
If they meant only graphical icons I don't see how a sentence like "i made the names of the new icons have 2 lines" would make sense. However, the Icon= line in a .desktop file refers to a graphical icon only.

Last edited by ondoho; 05-28-2020 at 02:44 AM.
 
Old 05-28-2020, 04:20 AM   #10
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
And nowhere does it say that this specifically applies to the Name= field.
Two pages further in the spec, Table 2:
Quote:
Key
Name
Description
Specific name of the application, for example "Mozilla".
Value Type
localestring

Last edited by shruggy; 05-28-2020 at 04:22 AM.
 
Old 05-28-2020, 12:42 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
In that case all I can say is that I can reproduce OP's problem and it makes sense to me that strings with newlines are not fully displayed.
It could also be that the desktop or file manager does not fully implement the spec, or that the documentation is simply wrong on that point.

If OP's desire is to limit icon labels to a certain width, the setting for that should be in the desktop manager's preferences.
 
Old 05-28-2020, 10:16 PM   #12
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
by "icon" i mean the things on the desktop display that have one little thumbnail size image and some small text below that image. each one comes from a file in directory ~/Desktop in the user home directory that ends with .desktop. i consider the .desktop file as defining the icon.

here is a screen capture of the icon how it looks in the "forums" user:
http://ipal.net/lq/20200528/20200528225259943947315.png
i moved most of the other icons away, but the LQ one was left right where it was.

here is the same exact .desktop file in user "skaperen":
http://ipal.net/lq/20200528/20200528224426367947578.png
see the one at the top.

these screen captures are both 1920x1080 (HD size).

it's all the same software at the same version upgraded yesterday. i cannot imagine the software coded to detect a specific user to do things different on, so it must be some setting somewhere.
 
Old 05-29-2020, 12:39 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Larger font? Different GTK theme? Different settings for xfdesktop?

Quote:
Originally Posted by Skaperen View Post
each one comes from a file in directory ~/Desktop in the user home directory that ends with .desktop.
Not necessarily.
You can also have normal files in ~/Desktop, they show up as well.
 
Old 05-30-2020, 12:38 AM   #14
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i have not changed the theme for any user. they are all the default. i have changed font sizes so i changed it to see the effect. enlarging the font pushes the "Linux Question" icon label from 2 lines to 3 lines. the "n" at the end goes to the third line when i change font size from 14 to 16. that's in user "forums". but in other users, no effect. going to extreme fonts just smashes the text to "..." but in just 1 line.


> You can also have normal files in ~/Desktop, they show up as well.

they show, but wrong. it doesn't seem to use any of the settings. they don't work. the image is all wrong. and the text it shows is the file name.

Last edited by Skaperen; 05-30-2020 at 12:40 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables - Inconsistent behavior between similar port forwarding rules Thoom Linux - Networking 2 12-11-2019 07:06 PM
Xubuntu 18.04.2-32bit with Compiz - How to save position of desktop icons, please? madmax25 Ubuntu 7 03-09-2019 10:57 AM
[SOLVED] No desktop panel or icons after install of XUbuntu 14.04 Jay88 Ubuntu 21 12-22-2014 09:24 AM
ubuntu-desktop vs. kubuntu-desktop vs. xubuntu-desktop vs. lubuntu-desktop vs. unity Kenny_Strawn Ubuntu 18 05-13-2011 09:20 AM
Odd gtk theme issue, inconsistent between wm sessions jonadab Linux - Software 1 05-14-2003 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:53 AM.

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