- This topic has 9 replies, 4 voices, and was last updated Mar 30-3:58 am by RJP.
-
AuthorPosts
-
March 25, 2023 at 7:06 pm #103182Forum Admin
Dave
App-select has been updated and can be found here:
https://gitlab.com/antiX-Dave/app-select-antix/Looking to have some testing of the app before submitting a merge request to antiX-Linux.
Current major updates:
Updated app-select.conf
– removed hard set items leafpad and mirage (open in text and view image); exchanging them for desktop-defaults-run.
– added add-desktop options (open in add-desktop, send to desktop, send to personal menu). This also requires and updated add-desktop found here: https://gitlab.com/antiX-Dave/add-desktop-antix
– Added a options / context menu button beside the apply / exit buttons
– added mime type associations to the output of the applications, also a filter in the search for mime types.
– added a mime type “editor” to the options / context menu to set the selected application as default for the selected mime types it supports.To “install”:
– clone the repo and enter the directory
git clone https://gitlab.com/antiX-Dave/app-select-antix/ && cd app-select-antix
– remove the already present symlinks (leafpad and mirage) in /usr/lib/app-select/plugins and replace with the symlinks to desktop-defaults-run and add-desktopsudo rm -r /usr/lib/app-select/plugins/leafpad && sudo rm -r /usr/lib/app-select/plugins/mirage sudo cp ./lib-app-select/plugins/* /usr/lib/app-select/plugins– copy the as_mime_editor plugin to /usr/lib/app-select/
sudo cp -r ./lib-app-select/as_mime_editor /usr/lib/app-select/
– remove (or edit) the current copy of app-select.conf and exchange or merge with the new one
rm ~/.config/app-select.conf && cp ./app-select.conf ~/.config/app-select.conf
– replace app-select with the newer version (or run locally with ./app-select)
sudo cp ./app-select /usr/local/bin/app-selectNotes:
– please start app-select from terminal to catch any outputted errors
– there may be issues with the cache file that causes an error. There is a check in app-select to see if the cache file is the older version (without mime types) and should automatically rebuild the cache file to make a newer version (with mime-types). If you receive and error in terminal on first run, please copy it and then runrm ~/.cache/app-selectbefore trying to run it again.
– for the updated add-desktop, downloading the add-desktop script (https://gitlab.com/antiX-Dave/add-desktop-antix/-/blob/master/usr/local/bin/add-desktop) and replacing the version in /usr/local/bin/add-desktop with the newly downloaded version should be enough to have the updated add-desktop options workingComputers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
March 25, 2023 at 8:07 pm #103185Moderator
Brian Masinick
::Dave, I gave it a try on an old Hewlett-Packard product: s5747c desktop and it works fine, didn’t see any errors and I tried several apps after modifying the system with this version. Unless there’s something wrong with a particular app, it looks good. Hopefully a few more people will take a look, but in the meantime the instructions looked good and it worked fine.
Just make sure you’re in the app-select-antix directory; if the cd following the git doesn’t work or you do anything in between, you won’t be in the right place to copy stuff exactly as in Dave’s directions, but if you follow carefully it seems to be fine!
Thanks for your efforts Dave!
--
Brian MasinickMarch 26, 2023 at 3:29 pm #103272Moderator
caprea
::Many thanks for your efforts, Dave, I tested it on antiX21 and still have problems with the new right-click options, respectively they work now very good and open the applications in add-dektop, but add-desktop does not work.
This is might due to my some years old antiX21 installation where I tinkered and tested a lot.I must say I never used add-desktop before.
The “send to desktop” option from app-select creates an application/.desktop in the /Desktop folder but in none of the window managers it is shown as shortcut/icon on my desktop.The “Send to Personal menu” adds nothing to the personal menu , but if I execute from terminal
desktop-menu --desktop-code="$code" --menu-file='/etc/xdg/menus/TCM-MENU.menu' --write-out --write-out-file='personal'
the added applications appear immediately on the Personal menu.
As already mentioned might caused by my tinkered system. So I will test the above on a clean antiX23 installation later and give feedback.In the above instruction there’s a typo in the second codeblock, one sudo is missing
sudo rm -r /usr/lib/app-select/plugins/leafpad && sudo rm -r /usr/lib/app-select/plugins/mirageMarch 26, 2023 at 4:01 pm #103276Moderator
Brian Masinick
::Caprea, you’re right about the corrections; I changed sudo rm -r /usr/lib/app-select/plugins/leafpad && sudo rm -r /usr/lib/app-select/plugins/mirage
but forgot to mention it; other than that it works fine and I’ve now tried it on antiX 23 Beta 1 first and today I repeated it on antiX 22.
--
Brian MasinickMarch 26, 2023 at 5:25 pm #103282Forum Admin
Dave
::@Caprea did you copy over the newer add-desktop?
Were there any errors displayed in the terminal?Which app did you use to try to send to desktop or personal menu (and which language)? I would like to try and reproduce the issue.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
March 27, 2023 at 12:37 pm #103330Moderator
caprea
::did you copy over the newer add-desktop?
Yes, I renamed the old one to /usr/local/bin/add-desktop.bak and copied the downloaded one to /usr/local/bin/add-desktop, had to change ownership to root and make it executable.
I tried arandr for example,the language is german.Nothing in terminal.- This reply was modified 1 month, 1 week ago by caprea.
March 29, 2023 at 2:08 am #103502Forum Admin
Dave
::@Caprea:
I booted the antiX 23 beta iso with the German language selected and 2 issues I noticed.
1. add-desktop had the path for the desktop directory hard coded as $HOME/Desktop. This has been changed to use $XDG_DESKTOP_DIR to account for the locale change. For the personal menu, there was an extra menu refresh line that was also static/hard coded and not needed. After fixing these items, add-desktop would add the app to the desktop folder if manually running the string from app-select (like: add-desktop -a some|information|about|the|app) but app-select would not work. Which brings up issue number 2.
2. Though the files in lib-app-select/plugins in my gitlab are symlinks to add-desktop and desktop-defaults-run; twice during testing when I copied them over to a fresh boot of the iso the symlinks became copies of the file. This is why app-select acted like it was using an old copy (not working) of add-desktop even though the newer copy was in /usr/local/bin/ as noticed after repairing issue number 1. After removing these files and making new symlinks to /usr/local/bin/ app-select was working for both send to desktop and send to personal.These should be repaired in the newest add-desktop from https://gitlab.com/antiX-Dave/add-desktop-antix/ and by verifying that the file in /usr/lib/app-select/plugins are actually symlinks to /usr/local/bin/(add-desktop|desktop-defaults-run)
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
March 29, 2023 at 4:54 am #103508MemberRJP
::@Caprea:
I booted the antiX 23 beta iso with the German language selected and 2 issues I noticed.
1. add-desktop had the path for the desktop directory hard coded as $HOME/Desktop. This has been changed to use $XDG_DESKTOP_DIR to account for the locale change. )The same problem is in add-desktop script, which does not work other locales than english. The fix is change FILE_WRITE_LOCATION line as
FILE_WRITE_LOCATION="$(xdg-user-dir DESKTOP)"Attachments:
March 30, 2023 at 2:19 am #103618Forum Admin
Dave
::@RJP,
What is the difference between “xdg-user-dir DESKTOP” and $XDG_DESKTOP_DIR?
As expected (to me) these produce the same result in the random languages I have chosen booting from ISO.
Both reference ~/.config/user-dirs.dirs; “xdg-user-dir DESKTOP” references it when the command is run and $XDG_DESKTOP_DIR is an environment export when the desktop environment is started (in /usr/local/lib/desktop-session/desktop-session-xdg-dirs.sh).Maybe I am missing a reason why “xdg-user-dir DESKTOP” is preferred over an environment variable?
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
March 30, 2023 at 3:58 am #103620MemberRJP
-
AuthorPosts
- You must be logged in to reply to this topic.