moving a menu category on desktop

Forum Forums New users New Users and General Questions moving a menu category on desktop

  • This topic has 13 replies, 7 voices, and was last updated Oct 22-4:06 pm by BobC.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #67432
    Member
    Daddy Libre

      I would allow my son to reach games easyer on the desktop.
      I knon the usr/share/applications tip but i want to copy the entire Games category under an icon in desktop.

      How can I do that?

      #67437
      Member
      Xecure
        Helpful
        Up
        0
        ::

        See if this script works for you.
        Un-compress it, make it executable, move it to a folder you an find it easier later, and drag and drop to the desktop. You can assign an icon if you like or change the name to make it more user friendly.

        • This reply was modified 1 year, 7 months ago by Xecure.
        • This reply was modified 1 year, 7 months ago by Xecure.
        Attachments:

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #67489
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          The default desktop is Rox-IceWM. If you have problems making Xecure’s suggestion work, try changing your desktop to Space-IceWM.

          You can do this from Main menu > Desktops menu > Other Desktops and change it to Space-IceWM on the Other Desktops menu.

          • This reply was modified 1 year, 7 months ago by BobC.
          #67559
          Member
          Daddy Libre
            Helpful
            Up
            0
            ::

            Thanks! I’m now facing a connectivity issue (not related to antix) in my rural home.
            As soon as I can test your suggestions I will update you all.

            (Then I wish to “report” my experiences in to the Italian topic, even if I’m the only one right now ☺)

            #69054
            Member
            Daddy Libre
              Helpful
              Up
              0
              ::

              Un-compress it, DONE.
              make it executable, DONE.
              move it to a folder you can find it easier later, DONE (whit new name “.Giochi.sh” in my son home folder)
              and drag and drop to the desktop. DONE
              You can assign an icon if you like DONE
              or change the name to make it more user friendly. DONE

              I’ve also manage to change the script to respond on double click (but i think single click it’s perfect in new touch screen hardware, especially for childrens).

              Than i’ve changed the menù and added even there.
              Also in taskbar.

              I’ve loved the way I feel when making this big-little changes to improves my kid experience and myself too.

              thankyou Xecure

              BobC yuor tips was helpfull too in the process, thanks!

              i will now update my experiment in the italian topic. bye.

              • This reply was modified 1 year, 6 months ago by Daddy Libre.
              #86547
              Member
              Daddy Libre
                Helpful
                Up
                0
                ::

                Can I change this script (and rename it) to perform similar but whit other category?
                I surely need it for Education category.

                #86565
                Moderator
                Brian Masinick
                  Helpful
                  Up
                  0
                  ::

                  Can I change this script (and rename it) to perform similar but whit other category?
                  I surely need it for Education category.

                  If you are referring to the script that Xecure wrote, he suggested and

                    encouraged

                  moving it to some personally owned directory and even renaming the tools to a name of your choice; in general, if it’s a system tool, you should leave it in place and leave it alone, but if it’s a tool script, particularly ones written for either personal or community use, these can be certainly COPIED, and probably MOVED to a personal location.

                  If they’re NOT in /usr/bin (DON’T move) or /usr/local/bin (copying OK), they’re fine to do whatever you want on your own system.

                  --
                  Brian Masinick

                  #86575
                  Moderator
                  BobC
                    Helpful
                    Up
                    0
                    ::

                    When you are done setting it up, make a backup copy that you can use in case your son deletes it by mistake.

                    Did you end up using the SpaceFM (or zzzfm) desktop?

                    It would be very easy to copy .desktop files to Games or School (or any other) folders inside the Desktop folder.

                    #91189
                    Member
                    Daddy Libre
                      Helpful
                      Up
                      0
                      ::

                      I am having trouble modifying the script to show educational app (i.e. tuxmath)
                      what I’ve done is simply change the “game” word whit education but it doesn’t show app.
                      the education window appears but it’s empty. I’ve tried to copy and paste the .desktop file in the generated directory, but nothing happens.

                      #91191
                      Member
                      Daddy Libre
                        Helpful
                        Up
                        0
                        ::

                        the original script:

                        #! /bin/bash
                        
                        APPLICATIONS_FOLDER="/usr/share/applications"
                        GAMES_FOLDER="$XDG_DESKTOP_DIR/Games"
                        APP_CATEGORY="Game"
                        YAT_TITLE="My Games"
                        
                        LIST_OF_GAME_FILES="$(grep "$APP_CATEGORY" "${APPLICATIONS_FOLDER}"/* 2>/dev/null | cut -d":" -f1 | sort -u)"
                        #~ grep "$APP_CATEGORY" "${APPLICATIONS_FOLDER}"/*
                        
                        [ -d "$GAMES_FOLDER" ] && rm -r "$GAMES_FOLDER"
                        
                        mkdir "$GAMES_FOLDER"
                        
                        while read -r line; do
                            if [ -f "$line" ]; then
                                cp "$line" "$GAMES_FOLDER/"
                            fi
                        done < <(echo "$LIST_OF_GAME_FILES")
                        
                        yad --icons --read-dir="$GAMES_FOLDER" --title="$YAT_TITLE" --center \
                            --borders=10 --width=700 --height=500 --no-buttons --double-click
                        

                        my best attempt

                         #! /bin/bash
                        
                        APPLICATIONS_FOLDER="/usr/share/applications"
                        EDUCATION_FOLDER="$XDG_DESKTOP_DIR/Education"
                        APP_CATEGORY="Education"
                        YAT_TITLE="My Edu"
                        
                        LIST_OF_GAME_FILES="$(grep "$APP_CATEGORY" "${APPLICATIONS_FOLDER}"/* 2>/dev/null | cut -d":" -f1 | sort -u)"
                        #~ grep "$APP_CATEGORY" "${APPLICATIONS_FOLDER}"/*
                        
                        [ -d "$EDUCATION_FOLDER" ] && rm -r "$EDUCATION_FOLDER"
                        
                        mkdir "$EDUCATION_FOLDER"
                        
                        while read -r line; do
                            if [ -f "$line" ]; then
                                cp "$line" "$EDUCATION_FOLDER/"
                            fi
                        done < <(echo "$LIST_OF_EDUCATION_FILES")
                        
                        yad --icons --read-dir="$EDUCATION_FOLDER" --title="$YAT_TITLE" --center \
                            --borders=10 --width=700 --height=500 --no-buttons --double-click
                        
                        • This reply was modified 6 months, 2 weeks ago by Daddy Libre.
                        #91194
                        Member
                        marcelocripe
                          Helpful
                          Up
                          0
                          ::

                          The original Xecure my-games.zip with the translation feature is available at the Internet Archive.

                          #91197
                          Moderator
                          christophe
                            Helpful
                            Up
                            0
                            ::

                            What happens if you do this:

                            Open the /usr/share/applications/tuxmath.desktop file (as root), and change the line “Categories” to this:
                            Categories=Game;

                            Save the file.
                            Maybe you will also need to restart the window manager or refresh the menu.

                            Then re-run the original (games) script again.

                            Does that work?

                            • This reply was modified 6 months, 2 weeks ago by christophe.

                            confirmed antiX frugaler, since 2019

                            #91205
                            Member
                            ModdIt
                              Helpful
                              Up
                              0
                              ::

                              You cam move or make changes in /usr/share/desktop-menu/ dot files (hidden) for your particular desktop.
                              Take care you must work as su.

                              Update menu afterwords. The changes may not survive updates of the particular applications concerned.
                              The menu placing is controlled from within the deb and not always logical.

                              For example see synaptic a package manager which is set to install to settings. I have moved it to system.

                              #91217
                              Moderator
                              BobC
                                Helpful
                                Up
                                0
                                ::

                                I believe the normal expected directory for personal .desktop files is ~/.local/share/applications, but I’m not sure how the system reacts to files put there.

                              Viewing 14 posts - 1 through 14 (of 14 total)
                              • You must be logged in to reply to this topic.