PDA

View Full Version : [gnome] Gnome classic side panel



skag
October 9th, 2012, 06:32 PM
I'm running Ubuntu 12.04 on gnome classic (hate unity :razz: )

picture first:

http://imageshack.us/a/img822/5602/folderpanel.png

So as you can see I added a side panel just for folders-links (not apps) and what I want to do is add Names under the "folder" icon... any ideas?

thnx in advance :smile:

ajgreeny
October 9th, 2012, 07:33 PM
I don't think you can do that in a panel. If you want to add text to a link like that I suspect you will simply need to add separate launchers to the folders using nautilus.

There are several ways to do that in versions before 12.04, but I'm not sure how you do it in 12.04. However what you need is a nautilus.desktop file for each folder named the same as the folder itself, so try dragging a launcher for nautilus from the menu, then open the .desktop file it produces in gedit, which you will have to do by finding the real name of the .desktop file from
ls Desktopin terminal. In gedit you can edit the name of the file and the exec used.
The file contains the following in 10.04

[Desktop Entry]
Categories=GNOME;GTK;System;Utility;Core;
Comment=Browse the file system with the file manager
Exec=nautilus --no-desktop --browser %U
Icon=system-file-manager
Name=File Browser
NoDisplay=false
OnlyShowIn=GNOME;
StartupNotify=true
Terminal=false
TryExec=nautilus
Type=Application
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Version=2.30.1
X-Ubuntu-Gettext-Domain=nautilus so edit the lines I show in red to point to the folders you want and name the same as as the folder.

jerrrys
October 9th, 2012, 07:46 PM
My first thought would be custom folders (folder icon) using gimp and just add the name on top of the folder.

ajgreeny
October 9th, 2012, 10:43 PM
My first thought would be custom folders (folder icon) using gimp and just add the name on top of the folder.
I did also think of that but dismissed it as I thought the icons would need to be too big for most people; certainly would for me!

jerrrys
October 9th, 2012, 11:17 PM
Same size, 3 or 4 letters.

skag
October 10th, 2012, 07:55 AM
I don't think you can do that in a panel. If you want to add text to a link like that I suspect you will simply need to add separate launchers to the folders using nautilus.

There are several ways to do that in versions before 12.04, but I'm not sure how you do it in 12.04. However what you need is a nautilus.desktop file for each folder named the same as the folder itself, so try dragging a launcher for nautilus from the menu, then open the .desktop file it produces in gedit, which you will have to do by finding the real name of the .desktop file from
ls Desktopin terminal. In gedit you can edit the name of the file and the exec used.
The file contains the following in 10.04

[Desktop Entry]
Categories=GNOME;GTK;System;Utility;Core;
Comment=Browse the file system with the file manager
Exec=nautilus --no-desktop --browser %U
Icon=system-file-manager
Name=File Browser
NoDisplay=false
OnlyShowIn=GNOME;
StartupNotify=true
Terminal=false
TryExec=nautilus
Type=Application
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Version=2.30.1
X-Ubuntu-Gettext-Domain=nautilus so edit the lines I show in red to point to the folders you want and name the same as as the folder.

I used gedit on the nautilus.desktop file and I can change the name but How can I change the exec in order to lauch from the path I want? (I see that gedit is not exactly necessary, it can also be done by "super+alt" right clicking on the launcher. but its more manual so I like it :P)

thnx for your quick responses :)

skag
October 10th, 2012, 07:58 AM
Naaah! erase the last! :P This panel doesnt want to have the folders named!! :P I put the launcher on the panel and it still got no name! I'll try the thing with the icons :)

ajgreeny
October 10th, 2012, 11:06 PM
Yes, get rid of the panel.

You can not add text to a launcher in the panel unless the text is part of the icon itself. To have both icon and text you will need a launcher icon on the desktop, not on the panel.

To get a launcher for a particular folder you need to use the command
nautilus --no-desktop /path/to/folderthough I am not sure how necessary the --no-desktop option is