Comments (16)
sounds like a nautilus issue not a freecad issue. The appimage doesn't register file associations
from freecad-bundle.
Is there an upstream ticket ?
from freecad-bundle.
could also be something coming from appimagelauncher, if we had more details about what's the mechanism at play here we could see if there's something we can do on our end
from freecad-bundle.
this is a regression.
from freecad-bundle.
how was it before? what registered fcstd files and how? I can't do anything if you don't give me information. Like I said before this is not stuff we are doing ourselves.
from freecad-bundle.
I can give extra information, I just don't know what do you need as information.
Before, it used to display the Freecad icon on .FCStd
files. Also, .FCbak
could have a defined icon.
Perhaps this issue belongs to the Freecad-Bundle instead. The regression may be introduced when the new logo was launched. But I am not sure.
from freecad-bundle.
Do you have the stable version installed too or had it in the past?
from freecad-bundle.
had it installed some weeks ago.
from freecad-bundle.
In case it helps: https://askubuntu.com/questions/1421738/nautilus-changing-a-file-icon-from-command-line
Could you try running this command (replacing SomeFreeCADFile.FCStd
)? Ideally before and after the change:
gio info -a "metadata::custom-icon" SomeFreeCADFile.FCStd
Is this something that the .deb package from the PPA used to do perhaps?
from freecad-bundle.
The FreeCAD package from the Ubuntu archives ships the custom icon: https://packages.ubuntu.com/jammy/all/freecad-common/filelist. Around the end of the list, see:
/usr/share/freecad/share/icons/hicolor/scalable/mimetypes/application-x-extension-fcstd.svg
The FreeCAD daily PPA package does as well:
dpkg -L freecad-daily-common | grep x-extension-fcstd
/usr/share/freecad-daily/share/icons/hicolor/scalable/mimetypes/application-x-extension-fcstd.svg
And the FreeCAD daily snap as well:
ls -lR /snap/freecad/current/ | grep -B 3 x-extension-fcstd
/snap/freecad/current/usr/share/icons/hicolor/scalable/mimetypes:
total 5
-rw-r--r-- 1 root root 4709 Jul 5 02:47 application-x-extension-fcstd.svg
from freecad-bundle.
I can also reproduce it, but I think it's a package-specific bug, and not a FreeCAD (the app) one.
In summary, I think:
- The custom icon is shipped on installable packages. I'm not familiar enough with AppImage to tell if it's something it also does or should do.
- The shipped custom icon has the right FreeCAD logo
- The shipped custom icon is failing to register with the
.FCStd
extension
This applies to .snap and .deb packages, as the issue description hints at the host system being Ubuntu.
from freecad-bundle.
Sorry if this would warrant an own issue, but was there ever any thought or talk about the extension name itself?
- Five letters are confusing for non-geeks by its own
- All consonants sounds like a party in the 90'
- The STD part does not seem very inviting
- ...and makes not much sense today
- 1.0 is braking the .FCstd tradition, is it not?
from freecad-bundle.
I also don't like this extension format. It is wierd It also has upper case and lower case characters. It is horrible.
from freecad-bundle.
This is packaging-related issue that AppImage can't solve directly since it is not installed, but FreeCAD can hypothetically add a menu entry that would automate described below for those using AppImage (only updates, at least for dev builds, will be problematic due to unique name used for downloaded file rather than replacing existing file instead).
Basically to fix this you need to do the following steps.
Create desktop shortcut for FreeCAD
Create file ~/.local/share/applications/freecad.desktop
(and necessary directories if they don't exist) with following contents:
[Desktop Entry]
Version=1.0
Type=Application
Name=FreeCAD
Icon=freecad
Exec="/home/user/.local/bin/FreeCAD.AppImage" %f
Terminal=false
/home/user/.local/bin/FreeCAD.AppImage
should point to your downloaded AppImage.
Now you'll see FreeCAD among installed apps and will be able to launch it like anything else.
Register mime type
For FreeCAD files to be recognized as something other than simply a ZIP file, separate mime type association needs to be created.
Create file ~/.local/share/mime/packages/org.freecadweb.FreeCAD.xml
(and necessary directories if they don't exist) with following contents (mostly taken from freecad-common
file of old Ubuntu package):
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-extension-fcstd">
<!-- <sub-class-of type="application/zip"/> -->
<comment>FreeCAD document files</comment>
<glob pattern="*.fcstd"/>
<glob pattern="*.fcbak"/>
<icon name="org.freecadweb.FreeCAD"/>
</mime-type>
</mime-info>
And update mime database:
update-mime-database ~/.local/share/mime
Now FreeCAD files will be recognized as a separate type and assuing the theme you're using has icons, you will get a dedicated icon for those files as well (I use Numix Circle theme and it does have icon for FreeCAD) or you may have to place one at ~/.local/share/icons/hicolor/scalable/apps/freecad.svg
.
Create association between FreeCAD and new type of files.
Simpy try to open the file with file manager (Nautilus, Nemo, etc.), choose FreeCAD from the list of apps and click "Set as default" to open this file type with FreeCAD going forward. Physically this will add application/x-extension-fcstd=freecad.desktop
line to both [Default Applications]
and [Added Associations]
sections of ~/.config/mimeapps.list
file.
from freecad-bundle.
I use the AppImageLauncher
which does this for us.
Here is the comment from the Author
TheAssassin/AppImageLauncher#275 (comment)
This is his first sentence:
File associations are supported and work fine. There are some prominent examples like FreeCAD or Ultimaker Cura (which even supports STL files out of the box!) which demonstrate this.
This thing was working fine using the AppImageLauncher
, now it does not work anymore for some reason.
from freecad-bundle.
the desktop file we ship defines supported mimetypes https://github.com/FreeCAD/FreeCAD/blob/de508e437d13e7eb35baffceea496fb9107888cb/src/XDGData/org.freecad.FreeCAD.desktop#L24C10-L24C21 so I don't know what would be missing here.
from freecad-bundle.
Related Issues (20)
- Sketcher External Geometry without ExternalGeometryExtension HOT 2
- File icon is not being displayed on AppImage anymore HOT 3
- automatically check for appimage update on startup HOT 1
- imported_objects = importSVG.insert(input_svg, doc.Name) returns None but works through GUI HOT 1
- Windows and Display gone wild (not displaying correctly/partially, placed odd, not painting) HOT 8
- Pad: Shape must be a wire, edge or compound. Something else was supplied. HOT 1
- Install V # 0.21.2 on Win 7, 64, Sys fails HOT 3
- A2PLUS HOT 5
- Font colour selection in Spreadsheets only works in the FreeCAD Classic theme. HOT 1
- All Sketcher units switch from inches to mm after applying a Pad operation with "Ignore project unit system and use default" selected HOT 1
- Mesh Workbench: Quasi structured quad not working HOT 4
- Problems creating and array of parts with draft workbench HOT 1
- Pressing the delete key with the Export dialog's filename field focused removes the item being exported from the model tree HOT 1
- Update installers to register new FreeCAD logo for FCStd / FCMacro in different OS HOT 1
- FreeCAD Weekly Build 38429 HOT 3
- Linear pattern, in part design, no longer works correctly HOT 1
- โPlease do not open general FreeCAD issues (read first) HOT 2
- Build 38459 for macOS x86 will not open HOT 2
- Access violation HOT 1
- Can we trigger a new build past 38459?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad-bundle.