Re: [SLE] Management: each user have a short cut to a certain folder on their desktop
Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
Even if I can creat shortcuts manually for all users (each host have
around
10 users for 10 classes of students), I still have trouble next year when I need to do this another 10x20 times because old users are removed and new users are created. I wish to creat it in /etc/skel but I cannot do it as long as they were not actually files. The 'everythig are files' concept of UNIX seems no longer welcomed these days.
Any suggestions? Is it possible, e.g. add my add-shortcut-script to the very script created Desktop folder when new user login the first time?
As long as symlinks are preserved during copy from /etc/skel to ~, there should be no problem putting them in skel.
I think there is a difference between shortcut icon and symlink. E.g. If I use symlink, the icon repersenting the symlink is always a executable with an arrow for a link, rather then the beautiful Firefox icon. I can ofcourse go to change the icon by log in as that user and right click to select an icon for it, however it's the same old problem: I need to do it 10x20 times each year. -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)
As long as symlinks are preserved during copy from /etc/skel to ~, there should be no problem putting them in skel.
I think there is a difference between shortcut icon and symlink. E.g. If I use symlink, the icon repersenting the symlink is always a executable with an arrow for a link, rather then the beautiful Firefox icon. I can ofcourse go to change the icon by log in as that user and right click to select an icon for it, however it's the same old problem: I need to do it 10x20 times each year.
Then it's even easier (if it is a file like .lnk under Windows) -- just a file. Copy your favorite links to /etc/skel/.kde/Desktop (or whereever it is)) and you are set. Jan Engelhardt --
在 2006-08-23三的 11:29 +0200,Jan Engelhardt写道:
As long as symlinks are preserved during copy from /etc/skel to ~, there should be no problem putting them in skel.
I think there is a difference between shortcut icon and symlink. E.g. If I use symlink, the icon repersenting the symlink is always a executable with an arrow for a link, rather then the beautiful Firefox icon. I can ofcourse go to change the icon by log in as that user and right click to select an icon for it, however it's the same old problem: I need to do it 10x20 times each year.
Then it's even easier (if it is a file like .lnk under Windows) -- just a file. Copy your favorite links to /etc/skel/.kde/Desktop (or whereever it is)) and you are set.
Thank you for offering kind help however I don't think you understood my case. Please try this: 1) create a shortcut on Gnome desktop by draging firefox from Application menu to the desktop, then you get a desktop shortcut, with colorful icon; 2) check ~/Desktop, there are NO FILE AT ALL. Gnome stored shortcut NOT AS A FILE. 3) then how do I duplicate what I did in 1) if operation in 1) didn't actually create a file?
Jan Engelhardt --
On Wed, 2006-08-23 at 18:13 +0800, Zhang Weiwu wrote:
在 2006-08-23三的 11:29 +0200,Jan Engelhardt写道:
As long as symlinks are preserved during copy from /etc/skel to ~, there should be no problem putting them in skel.
---snip---
Thank you for offering kind help however I don't think you understood my case.
Please try this: 1) create a shortcut on Gnome desktop by draging firefox from Application menu to the desktop, then you get a desktop shortcut, with colorful icon; 2) check ~/Desktop, there are NO FILE AT ALL. Gnome stored shortcut NOT AS A FILE.
Note to self; reason 104 for not switching to KDE (Sorry, dont have a solution, but will play a bit) E-Mail disclaimer: http://www.sunspace.co.za/emaildisclaimer.htm
On Wed, 2006-08-23 at 12:37 +0200, Hans van der Merwe wrote:
On Wed, 2006-08-23 at 18:13 +0800, Zhang Weiwu wrote:
在 2006-08-23三的 11:29 +0200,Jan Engelhardt写道:
As long as symlinks are preserved during copy from /etc/skel to ~, there should be no problem putting them in skel.
---snip---
Thank you for offering kind help however I don't think you understood my case.
Please try this: 1) create a shortcut on Gnome desktop by draging firefox from Application menu to the desktop, then you get a desktop shortcut, with colorful icon; 2) check ~/Desktop, there are NO FILE AT ALL. Gnome stored shortcut NOT AS A FILE.
Note to self; reason 104 for not switching to Gnome
(Sorry, dont have a solution, but will play a bit)
Oops, that backfired on me :) E-Mail disclaimer: http://www.sunspace.co.za/emaildisclaimer.htm
On Wednesday 23 August 2006 11:13, Zhang Weiwu wrote:
Thank you for offering kind help however I don't think you understood my case.
With all due respect, I don't think you provided the correct information. SUSE is predominently a KDE based distro (for now) and the Desktop folder works for KDE, like Jan stated. You are using Gnome, so all bets are off. Gnome does some things very differently sometimes. -- Steve Boddy
在 2006-08-23三的 11:46 +0100,Stephen Boddy写道:
On Wednesday 23 August 2006 11:13, Zhang Weiwu wrote:
Thank you for offering kind help however I don't think you understood my case.
With all due respect, I don't think you provided the correct information. SUSE
yeah, now I noticed I forgot to mention I was using gnome.
is predominently a KDE based distro (for now) and the Desktop folder works for KDE, like Jan stated. You are using Gnome, so all bets are off. Gnome does some things very differently sometimes.
Isn't there a way out on gnome?
Zhang Weiwu wrote:
Please try this: 1) create a shortcut on Gnome desktop by draging firefox from Application menu to the desktop, then you get a desktop shortcut, with colorful icon; 2) check ~/Desktop, there are NO FILE AT ALL. Gnome stored shortcut NOT AS A FILE. 3) then how do I duplicate what I did in 1) if operation in 1) didn't actually create a file?
You didn't say what SUSE version or window/desktop manager you are using. What type of file is Desktop? In my SUSE 9.3 home directory there is a symlink called Desktop, which points to a directory called .gnome-desktop (note the leading dot, whatever it's called on your system it probably has a leading dot). In that directory are files such as myComputer.desktop, which contains info about the icon to use, among other things. I guess this is what you're looking for. I use icewm now (which doesn't use desktop icons) so these files are presumably a relic from metacity or something even earlier. HTH, Dave PS Don't worry that there are no files. There ARE! It's just a question of finding them :)
在 2006-08-23三的 11:55 +0100,Dave Howorth写道:
Zhang Weiwu wrote:
Please try this: 1) create a shortcut on Gnome desktop by draging firefox from Application menu to the desktop, then you get a desktop shortcut, with colorful icon; 2) check ~/Desktop, there are NO FILE AT ALL. Gnome stored shortcut NOT AS A FILE. 3) then how do I duplicate what I did in 1) if operation in 1) didn't actually create a file?
You didn't say what SUSE version or window/desktop manager you are using. What type of file is Desktop?
I do realized I forgot this important information in my original post. Sorry for that!
In my SUSE 9.3 home directory there is a symlink called Desktop, which points to a directory called .gnome-desktop (note the leading dot, whatever it's called on your system it probably has a leading dot). In that directory are files such as myComputer.desktop, which contains info about the icon to use, among other things. I guess this is what you're looking for. I use icewm now (which doesn't use desktop icons) so these files are presumably a relic from metacity or something even earlier.
HTH, Dave
PS Don't worry that there are no files. There ARE! It's just a question of finding them :)
Ah, you enlightend me! I begin to look for *.desktop file in my Desktop folder and discovered this file: robate-006ae3db93.desktop This file IS the shortcut I created for firefox. I just don't understand why it is not named "surf the web.desktop" which is the name I gave to the shortcut! Anyway I found this file, thanks a lot! It was the strange name that made me think no file is actually created.
PS Don't worry that there are no files. There ARE! It's just a question of finding them :)
Ah, you enlightend me! I begin to look for *.desktop file in my Desktop folder and discovered this file: robate-006ae3db93.desktop
This file IS the shortcut I created for firefox. I just don't understand why it is not named "surf the web.desktop" which is the name I gave to the shortcut!
GNOME smoked something... Jan Engelhardt --
participants (6)
-
Dave Howorth
-
Hans van der Merwe
-
Jan Engelhardt
-
Stephen Boddy
-
Zhang Weiwu
-
张 韡武