(SOLVED) GTK bookmarks order

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
HellMan

(SOLVED) GTK bookmarks order

Post by HellMan »

Hello! I have a question, why order in gtk-bookmarks in mint menu is rather strange? It's quite different from order in nautilus.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
unexistance

Re: GTK bookmarks order

Post by unexistance »

Hi,

It's different :D right-click on your menu | Preference | Places

Regards,
HellMan

Re: GTK bookmarks order

Post by HellMan »

Hmmm I know it's different :wink: how to fix it? :?:
unexistance

Re: GTK bookmarks order

Post by unexistance »

Hi,

Just make it look the same? nautilus bookmark is of different location from the mintmenu.

The only way is to make it the same manually

Or did I misunderstood your question? :D

Regards,
HellMan

Re: GTK bookmarks order

Post by HellMan »

unexistance, i mean gtk-bookmarks feature in new MintMenu :wink:

First, i think gtk-bookmarks are stored in ~/.gtk-bookmarks. It's contents:
Image

Next, gtk-bookmarks in nautilus have the same order as in the file:
Image

But in MintMenu -> Places they are mixed up! (I don't add bookmarks manually, just used an option "show gtk bookmarks")
Image

Of course i can disable that feature and add places manually. But i think this thing is very nice and it should be working good :)
unexistance

Re: GTK bookmarks order

Post by unexistance »

Hi,

Sorry I haven't upgraded to mint10 yet ... I guessing mintmenu sort it automatically?

You can ask in mintmenu subforum

Regards,
mauricep

Re: GTK bookmarks order + number limit in Mint Menu

Post by mauricep »

This one seems to me worth bumping. I have the same problem of the "Places" section of the Mint Menu using a seemingly arbitrary order when showing my GTK bookmarks

And I add to this the possibly related problem of the number of GTK bookmarks shown being limited to 5. I would have space for all 7-8 of my favorites if it let me. Coupled with the random order, I cannot even influence which of my 7 bookmarks appear here.

M
HellMan

Re: GTK bookmarks order

Post by HellMan »

Fixed this.
In /usr/lib/linuxmint/mintMenu/plugins/places.py

Code: Select all

diff places_orig.py places.py
215c215
<             bookmarks = {}            
---
>             bookmarks = []
220c220
<                     parts = line.split(' ')
---
>                     parts = line.split(' ', 1)
223c223
<                         bookmarks[parts[1]] = parts[0]
---
>                         bookmarks += [(parts[1], parts[0])]
226c226
<                         bookmarks[junk[len(junk) - 1]] = parts[0]
---
>                         bookmarks += [(junk[len(junk) - 1], parts[0])]
228c228
<             for name, path in bookmarks.iteritems():                          
---
>             for name, path in bookmarks:
Also contains another fix - if bookmark contained spaces - it wasn't showed. With this fix it's ok.

If anyone needs this, fixed plugin here or
here
PS. Should I submit it anywhere? :?:

PPS. mauricep, I have 14 items in places (gtk-bookmarks), everything is ok. There's also an option in mintmenu/places - scrollbar, with which really any amount of bookmarks will be shown (though it's not very convenient).
unexistance

Re: (SOLVED) GTK bookmarks order

Post by unexistance »

Hi,

This is awesome, I think you can give this to someone in mint tools subforum...
Or you can ask our forum moderator (they might know)

Regards,
elic

Re: (SOLVED) GTK bookmarks order

Post by elic »

I just wanted to note that I've submitted a similar patch to the launchpad bug tracker for mintmenu (bug 782287), though I'm unclear as to whether that bug tracker is actively in use or not.
User avatar
phoinx
Level 1
Level 1
Posts: 9
Joined: Sun Apr 24, 2011 12:46 pm
Location: Brasilia, DF, Brazil

Re: (SOLVED) GTK bookmarks order

Post by phoinx »

Just passing to say thanks to HellMan!
My menu is fixed now. =]
Gigabyte GA-970-DS3P / AMD Athlon II x3 425 2.7GHz / Kingston 16GB DDR3 1333MHz / NVIDIA GeForce GTX 550 Ti (2GB) / Linux Mint 17.3 Cinnamon 64-bit
Locked

Return to “Software & Applications”